Merge pull request #1055 from owenthewizard/master

silence which command output
This commit is contained in:
Calin Crisan 2017-07-30 20:55:36 +03:00 committed by GitHub
commit 8587fc0dc8
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ 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)
gzip=$(which pigz || which gzip)
gzip=$(which pigz 2> /dev/null || which gzip 2> /dev/null)
if [ "$board" == "all" ]; then
boards=$(ls $basedir/configs/*_defconfig | grep -v initramfs | grep -oE '\w+_defconfig$' | cut -d '_' -f 1)

View File

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