Archived
1
0

'DBUG-output.sh' toevoegen

This commit is contained in:
2019-09-15 17:21:59 +00:00
parent b0e5cb5d4e
commit d845a09177

15
DBUG-output.sh Normal file
View File

@@ -0,0 +1,15 @@
# Set debug flag as desired
DEBUG=1
# DEBUG=0
if [ "$DEBUG" -eq "1" ]; then
OUT='/dev/tty'
else
OUT='/dev/null'
fi
# actual script use commands like this
command > $OUT 2>&1
# or like this if you need
command 2> $OUT