mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +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.
|
# DESCRIPTION: Echo debug information to stdout.
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
echodebug() {
|
echodebug() {
|
||||||
if [ "${_ECHO_DEBUG}" -eq "${BS_TRUE}" ]; then
|
if [ "${_ECHO_DEBUG:-0}" = 1 ]; then
|
||||||
printf "${BC} * DEBUG${EC}: %s\n" "$@";
|
printf "${BC} * DEBUG${EC}: %s\n" "$@";
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue