diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-23 16:19:33 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-23 16:19:33 -0500 |
commit | 6acd865fad83031991bd4935eea414397946626f (patch) | |
tree | d564e28bc5b0291367c844ab8d72d4a9a83d6bdb /squashfu | |
parent | 02518588324adbb08761d92192651b6a3cf1d432 (diff) | |
download | squashfu-6acd865fad83031991bd4935eea414397946626f.tar.gz |
Fix date when confirming bin deletion
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -289,7 +289,7 @@ action_remove_bin () { if [[ $(grep -E "^$1:" ${BINVENTORY}) && -d "${BINS_DIR}/$1" ]]; then if [[ -z $2 ]]; then echo "Are you SURE you want to remove this bin?" - local timestamp=$(sed -n "/^$1/s/^[0-9]*://" "${BINVENTORY}") + local timestamp=$(sed -n "/^$1:/s/^[0-9]*:\([0-9]*\)/\1/p" "${BINVENTORY}") printf "\t%15s %s\n\t%15s %s\n\t%15s %s\n" \ "Bin:" "$1" \ "Date Created:" "$(date --rfc-3339=seconds --date="1970-01-01 $timestamp sec GMT")" \ |