Move [ "$VERBOSE" = true ] && set -x to be managed by debug trace instead.

This commit is contained in:
meek2100 2025-05-23 12:00:05 -07:00 committed by GitHub
parent f0cb22206c
commit b388f2214a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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