mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
silence which output
This commit is contained in:
parent
8d5ae8f839
commit
5f2387e52b
2
build.sh
2
build.sh
@ -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)
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user