From 71db69b29454fcee3fc9d3365d283bf60e0fb611 Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 8 Oct 2026 17:14:10 +0300 Subject: [PATCH] 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. --- dev/libvirt-bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/libvirt-bootstrap.sh b/dev/libvirt-bootstrap.sh index eb9c9a0b..e3c3b85c 100644 --- a/dev/libvirt-bootstrap.sh +++ b/dev/libvirt-bootstrap.sh @@ -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 }