aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-18 22:42:03 -0500
committerDave Reisner <d@falconindy.com>2010-01-18 22:42:03 -0500
commitd34040f0ce9d1d6446a9bb752f8589a0ffd673d4 (patch)
treecf4e1fb0fd7737a5d2ee6db54b4a7f6907a4e72c /squashfu
parente937c3b260254efb78f2c361d6a3a744cd886fac (diff)
downloadsquashfu-d34040f0ce9d1d6446a9bb752f8589a0ffd673d4.tar.gz
yum, more errors
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu4
1 files changed, 2 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index 9767527..bdcce4c 100755
--- a/squashfu
+++ b/squashfu
@@ -280,7 +280,7 @@ action_remove_bin () {
if [[ -z $2 && $(grep -E "^$1:" ${BINVENTORY}) && -d "${BINS_DIR}/$1" ]]; then
echo "Are you SURE you want to remove this bin?"
- local timestamp=$(sed -n 's/^[0-9]*://' "${BINVENTORY}")
+ local timestamp=$(sed -n "/$1/s/^[0-9]*://" "${BINVENTORY}")
printf "\tBin ID: %20s\n\tDate Created: %20s\n\tSize: %20s\n" \
"$1" \
"$(date --rfc-3339=seconds --date="1970-01-01 $timestamp sec GMT")" \
@@ -294,7 +294,7 @@ action_remove_bin () {
fi
info "Deleting bin $1"
- sed -n "/^$new_bin:[0-9]*/d" "${BINVENTORY}"
+ sed -n "/^$1:[0-9]*/d" "${BINVENTORY}"
rm -rf ${BINS_DIR}/$1
# tidy up!