summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-09 16:37:43 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-09 16:37:43 +0200
commit1e19daef1537cb3a3c5608037f82a494822746b1 (patch)
treef83d0a799eadcc47250b0d5c0f29b71477776903
parente116d008ca727c2dfbce25809821db6bf354f461 (diff)
downloadmkinitcpio-1e19daef1537cb3a3c5608037f82a494822746b1.tar.gz
mkinitcpio-1e19daef1537cb3a3c5608037f82a494822746b1.tar.xz
mkinitcpio: add --quiet to bsdcpio without -v
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index a94d09c..4a394d8 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -341,7 +341,9 @@ if [[ "${GENIMG}" ]]; then
[[ "$COMPRESSION" = xz ]] && COMPRESSION_OPTIONS+=" --check=crc32"
pushd "$BUILDROOT" >/dev/null
- find . -print0 | bsdcpio -0oH newc | $COMPRESSION $COMPRESSION_OPTIONS > "$IMGPATH"
+ find . -print0 |
+ bsdcpio $( (( QUIET )) && echo '--quiet' ) -0oH newc |
+ $COMPRESSION $COMPRESSION_OPTIONS > "$IMGPATH"
pipesave=("${PIPESTATUS[@]}") # save immediately
popd >/dev/null