use shell || rather than a full if statement in debug setting -x

This commit is contained in:
dtb 2023-11-08 18:33:35 -07:00
parent 7057d83ad9
commit 8317dd8f4f

6
yt
View File

@ -18,9 +18,9 @@
set -e
if test -n "$DEBUG"; then
set -x
fi
test -n "$DEBUG" \
&& set -x \
|| true # because set -e
argv0="$0"
com="$1"