From 8317dd8f4ff8e80aeea63430e01116fbf833f3ac Mon Sep 17 00:00:00 2001 From: DTB Date: Wed, 8 Nov 2023 18:33:35 -0700 Subject: [PATCH] use shell || rather than a full if statement in debug setting -x --- yt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt b/yt index 3828966..6b22bc5 100755 --- a/yt +++ b/yt @@ -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"