From b388f2214a6b4913a659a957cb7a35c7a575c4e5 Mon Sep 17 00:00:00 2001 From: meek2100 <34908880+meek2100@users.noreply.github.com> Date: Fri, 23 May 2025 12:00:05 -0700 Subject: [PATCH] Move [ "$VERBOSE" = true ] && set -x to be managed by debug trace instead. --- opkgscript.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opkgscript.sh b/opkgscript.sh index 44056d8..c5844a9 100755 --- a/opkgscript.sh +++ b/opkgscript.sh @@ -30,6 +30,8 @@ PREQLIST=$(mktemp) # List of prerequisite packa UPDATE=false # Update the package database OPKGOPT="" # Options for opkg calls VERBOSE=false # Be verbose +DEBUG_TRACE=false # Set to true to enable shell debug tracing (set -x) + cleanup () { rm -f $INSTLIST $PREQLIST @@ -109,7 +111,7 @@ while getopts "htuv" OPTS; do done shift $(($OPTIND - 1)) -[ "$VERBOSE" = true ] && set -x +[ "$DEBUG_TRACE" = true ] && set -x # Set the command COMMAND=$1