diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-12 20:49:24 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-12 20:49:24 -0500 |
commit | 5f75b00f35ad38129cb444ac610e821e85ff1569 (patch) | |
tree | e8fbd50c4a5411aa4333f0a172ca6963315295c6 | |
parent | bed9e9725bba7d1b0853833247d79aa2fc8ad0df (diff) | |
download | squashfu-5f75b00f35ad38129cb444ac610e821e85ff1569.tar.gz |
Show date of rollback when operation completes
-rwxr-xr-x | squashfu | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 () { |