diff options
-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")" \ |