diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-18 22:47:37 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-18 22:47:37 -0500 |
commit | 43893d43552912957818b60a13e3de7d765af2b9 (patch) | |
tree | 5f779150f6cbab6e5f7ff1a93c9df7387498f35c | |
parent | a6e9c3ad20fb8ff3b41b484d549bb8259dc33dfe (diff) | |
download | squashfu-43893d43552912957818b60a13e3de7d765af2b9.tar.gz |
Fixed printf in remove_bin() for alignment
-rwxr-xr-x | squashfu | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -281,10 +281,10 @@ 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 "/$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")" \ - "$(du -sh "${BINS_DIR}/$1" 2>/dev/null)" + printf "\t%10s %s\n\t%10s: %s\n\t%10s: %s\n" \ + "Bin:" "$1" \ + "Date Created:" "$(date --rfc-3339=seconds --date="1970-01-01 $timestamp sec GMT")" \ + "Size:" "$(du -sh "${BINS_DIR}/$1" 2>/dev/null)" read -p "Confirm deletion (y/N)" confirm if [[ $confirm != "y" ]]; then |