silence which output

This commit is contained in:
Owen Walpole 2017-07-29 23:21:01 -05:00
parent 8d5ae8f839
commit 5f2387e52b
2 changed files with 4 additions and 0 deletions

View File

@ -13,7 +13,9 @@ cd $(dirname $0)
basedir=$(pwd) basedir=$(pwd)
osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name) osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name)
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version) osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
exec &> /dev/null
gzip=$(which pigz || which gzip) gzip=$(which pigz || which gzip)
exec 1>&1 2>&2
if [ "$board" == "all" ]; then if [ "$board" == "all" ]; then
boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1) boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1)

View File

@ -76,7 +76,9 @@ if ! [ -f $DISK_IMG ]; then
exit 1 exit 1
fi fi
exec &> /dev/null
gunzip=$(which unpigz || which gunzip) gunzip=$(which unpigz || which gunzip)
exec 1>&1 2>&2
if [[ $DISK_IMG == *.gz ]]; then if [[ $DISK_IMG == *.gz ]]; then
msg "decompressing the gzipped image" msg "decompressing the gzipped image"