From 5f2387e52baa1693004913afc5edd80e0438e91b Mon Sep 17 00:00:00 2001 From: Owen Walpole Date: Sat, 29 Jul 2017 23:21:01 -0500 Subject: [PATCH] silence which output --- build.sh | 2 ++ writeimage.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.sh b/build.sh index dac91efc6d..68a516cb06 100755 --- a/build.sh +++ b/build.sh @@ -13,7 +13,9 @@ cd $(dirname $0) basedir=$(pwd) osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name) osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version) +exec &> /dev/null gzip=$(which pigz || which gzip) +exec 1>&1 2>&2 if [ "$board" == "all" ]; then boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1) diff --git a/writeimage.sh b/writeimage.sh index 99895df526..8abbd8b5b5 100755 --- a/writeimage.sh +++ b/writeimage.sh @@ -76,7 +76,9 @@ if ! [ -f $DISK_IMG ]; then exit 1 fi +exec &> /dev/null gunzip=$(which unpigz || which gunzip) +exec 1>&1 2>&2 if [[ $DISK_IMG == *.gz ]]; then msg "decompressing the gzipped image"