From 883d9000bd05a73f2563f4bd5f51abff2305141f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 10 Mar 2018 22:59:50 +0800 Subject: cmd_cleanup(): Fix the use of get_vn_filename() --- dfly-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dfly-update b/dfly-update index 25826a0..769f32f 100755 --- a/dfly-update +++ b/dfly-update @@ -678,7 +678,8 @@ cmd_cleanup() { [ $# -eq 0 ] || \ error ${EC_ARGS} "cmd_cleanup: invalid arguments: $@" cleanup - local filepath=$(get_vn_filename ${MNT_DIR}) + local vn=$(get_vn_devname ${MNT_DIR}) + local filepath=$(get_vn_filename ${vn}) umount_image ${MNT_DIR} rm -f ${filepath} echo "Removed image file: ${filepath}" -- cgit v1.2.2