diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2007-10-15 14:06:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2007-10-15 14:06:17 +0000 |
commit | 838cb4b1494ab9c3cfc7c0a952aaf220625758df (patch) | |
tree | 89278c192a543a9795fafaf2ea61391cbf3acf96 /lbu | |
parent | 4c6317c699e81251974c14c8ca452471db7f83e1 (diff) | |
download | alpine-conf-838cb4b1494ab9c3cfc7c0a952aaf220625758df.zip |
clean up verbosity
Diffstat (limited to 'lbu')
-rw-r--r-- | lbu | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -213,25 +213,25 @@ cmd_package() { # create tar archive [ -f "$EXCLUDE_LIST" ] && excl="-X $EXCLUDE_LIST" [ -f "$INCLUDE_LIST" ] && incl="-T $INCLUDE_LIST" - if [ -z "$ENCRYPTION" ]; then - tar $VERBOSE $excl $incl -c $currentlist \ - | gzip -c >"$tmppkg" + if [ -n "$VERBOSE" ]; then + echo "Archiving the following files:" >&2 + # we dont want to mess the tar output with the + # password prompt. Lets get the tar output first. + tar $excl $incl -c -v $currentlist > /dev/null rc=$? - else - if [ -n "$VERBOSE" ]; then - echo "Archiving the following files:" >&2 - # we dont want to mess the tar output with the - # password prompt. Lets get the tar output first. - tar $excl $incl -c -v $currentlist > /dev/null + fi + if [ $rc -eq 0 ]; then + if [ -z "$ENCRYPTION" ]; then + tar $excl $incl -c $currentlist | gzip -c >"$tmppkg" rc=$? - fi - if [ $rc -eq 0 ]; then + else tar $excl $incl -c $currentlist | gzip -c \ | $OPENSSL enc "-$ENCRYPTION" -salt > "$tmppkg" rc=$? fi fi + # actually commit unless dryrun mode if [ $rc -eq 0 ]; then [ -z "$DRYRUN" ] && cp "$tmppkg" "$pkg" else |