mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec &> /dev/null
|
gunzip=$(which unpigz 2> /dev/null || which gunzip 2> /dev/null)
|
||||||
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