aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-10 22:59:50 +0800
committerAaron LI <aly@aaronly.me>2018-03-10 22:59:50 +0800
commit883d9000bd05a73f2563f4bd5f51abff2305141f (patch)
tree51b27fde82b4b08c4ad75548f5e97214a3687187
parentce76f293885042b6160ab176db9e6d514db5e7c1 (diff)
downloaddfly-update-883d9000bd05a73f2563f4bd5f51abff2305141f.tar.bz2
cmd_cleanup(): Fix the use of get_vn_filename()
-rwxr-xr-xdfly-update3
1 files changed, 2 insertions, 1 deletions
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}"