From 5f75b00f35ad38129cb444ac610e821e85ff1569 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 12 Jan 2010 20:49:24 -0500 Subject: Show date of rollback when operation completes --- squashfu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/squashfu b/squashfu index 3ec636a..9fb0960 100755 --- a/squashfu +++ b/squashfu @@ -302,7 +302,10 @@ action_rollback () { mount_union_with_bins ${bin_list[@]:(-$num_to_mount)} - info "Union is now mounted at '$UNION_MOUNT'" + local rb_timestamp=$(grep -E "^${bin_list[@]:(-$num_to_mount):1}:" "$BINVENTORY" | cut -d: -f2) + + info "You have rolled back to $(date --rfc-3339=seconds --date="1970-01-01 $rb_timestamp sec GMT")" + info "Your files can be found at '${UNION_MOUNT}'" } action_report () { -- cgit v1.2.3