From 6acd865fad83031991bd4935eea414397946626f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 23 Jan 2010 16:19:33 -0500 Subject: Fix date when confirming bin deletion --- squashfu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'squashfu') 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")" \ -- cgit v1.2.3