aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-23 16:19:33 -0500
committerDave Reisner <d@falconindy.com>2010-01-23 16:19:33 -0500
commit6acd865fad83031991bd4935eea414397946626f (patch)
treed564e28bc5b0291367c844ab8d72d4a9a83d6bdb
parent02518588324adbb08761d92192651b6a3cf1d432 (diff)
downloadsquashfu-6acd865fad83031991bd4935eea414397946626f.tar.gz
Fix date when confirming bin deletion
-rwxr-xr-xsquashfu2
1 files changed, 1 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index 05274ec..c3c94f1 100755
--- a/squashfu
+++ b/squashfu
@@ -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")" \