mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +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:
parent
8dfe4d7713
commit
71db69b294
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue