silencing stderr unless --verbose the easy way

This commit is contained in:
Gwenhael Le Moine 2024-10-06 10:15:56 +02:00
parent 000755e27a
commit b2c760a1a2
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 21 additions and 4 deletions

7
dist/saturn40g vendored
View file

@ -33,4 +33,9 @@ if [ ! -e "$CONFIGDIR"/ram ]; then
RESET=--reset
fi
./saturn --40g --state-dir "$CONFIGDIR" "$RESET" "$@"
if echo "$@" | grep -q "\-\-verbose"; then
./saturn --40g --state-dir "$CONFIGDIR" "$RESET" "$@"
else
./saturn --40g --state-dir "$CONFIGDIR" "$RESET" "$@" 2> /dev/null
fi

6
dist/saturn48gx vendored
View file

@ -36,4 +36,8 @@ if [ ! -e "$CONFIGDIR"/ram ]; then
RESET=--reset
fi
./saturn --48gx --state-dir "$CONFIGDIR" "$RESET" "$@"
if echo "$@" | grep -q "\-\-verbose"; then
./saturn --48gx --state-dir "$CONFIGDIR" "$RESET" "$@"
else
./saturn --48gx --state-dir "$CONFIGDIR" "$RESET" "$@" 2> /dev/null
fi

6
dist/saturn48sx vendored
View file

@ -36,4 +36,8 @@ if [ ! -e "$CONFIGDIR"/ram ]; then
RESET=--reset
fi
./saturn --48sx --state-dir "$CONFIGDIR" "$RESET" "$@"
if echo "$@" | grep -q "\-\-verbose"; then
./saturn --48sx --state-dir "$CONFIGDIR" "$RESET" "$@"
else
./saturn --48sx --state-dir "$CONFIGDIR" "$RESET" "$@" 2> /dev/null
fi

6
dist/saturn49g vendored
View file

@ -33,4 +33,8 @@ if [ ! -e "$CONFIGDIR"/ram ]; then
RESET=-reset
fi
./saturn --49g --state-dir "$CONFIGDIR" "$RESET" "$@"
if echo "$@" | grep -q "\-\-verbose"; then
./saturn --49g --state-dir "$CONFIGDIR" "$RESET" "$@"
else
./saturn --49g --state-dir "$CONFIGDIR" "$RESET" "$@" 2> /dev/null
fi