1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00

fix(bootstrap): no "integer expression expected" on every step

echodebug compared _ECHO_DEBUG and BS_TRUE with -eq, but neither is set
anywhere, so each step printed "[: : integer expression expected". It
now prints debug lines only when _ECHO_DEBUG=1 is set.
This commit is contained in:
catborise 2026-10-08 17:14:10 +03:00
parent 8dfe4d7713
commit 71db69b294

View file

@ -45,7 +45,7 @@ echowarn() {
# DESCRIPTION: Echo debug information to stdout.
#-------------------------------------------------------------------------------
echodebug() {
if [ "${_ECHO_DEBUG}" -eq "${BS_TRUE}" ]; then
if [ "${_ECHO_DEBUG:-0}" = 1 ]; then
printf "${BC} * DEBUG${EC}: %s\n" "$@";
fi
}