mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
make redirection more readable
This commit is contained in:
parent
b4c343f1b5
commit
2ec01b7589
@ -76,9 +76,7 @@ if ! [ -f $DISK_IMG ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec &> /dev/null
|
||||
gunzip=$(which unpigz || which gunzip)
|
||||
exec 1>&1 2>&2
|
||||
gunzip=$(which unpigz 2> /dev/null || which gunzip 2> /dev/null)
|
||||
|
||||
if [[ $DISK_IMG == *.gz ]]; then
|
||||
msg "decompressing the gzipped image"
|
||||
|
Loading…
x
Reference in New Issue
Block a user