aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-06-07 19:42:09 -0400
committerDave Reisner <d@falconindy.com>2010-06-07 19:42:09 -0400
commit701d08d09434710c293adf787951f119db1b41ea (patch)
tree1efd70f604936408a03b024140b1dbe895d7edad
parent11377a2fd9723c3868eb2108bdf73e2936055a4a (diff)
downloadsquashfu-701d08d09434710c293adf787951f119db1b41ea.tar.gz
restore: be nice and actually inform about where the restore was done to
-rwxr-xr-xsquashfu4
1 files changed, 3 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index bd473b0..5fa1f48 100755
--- a/squashfu
+++ b/squashfu
@@ -388,7 +388,9 @@ action_restore () {
mount_union_with_bins ${bin_list[@]:0:$num} || die "Failed to mount union"
# XXX: Move the contents, not the dir (avoid extra subdir)
- rsync -av "$UNION_MOUNT/$1" "$(basename $1).${snaps[$reply]}"
+ rsync -a "$UNION_MOUNT/$1" "$(basename $1).${snaps[$reply]}"
+
+ info "Your $(stat -c %F "$UNION_MOUNT/$1") has been restored as ${PWD}/$(basename $1).${snaps[$reply]}"
unmount_all