fix(bktemplate):Fix error in vbm conditional
authorSteven Baltakatei Sandoval <baltakatei@gmail.com>
Sun, 28 Jun 2020 22:45:31 +0000 (22:45 +0000)
committerSteven Baltakatei Sandoval <baltakatei@gmail.com>
Sun, 28 Jun 2020 22:45:31 +0000 (22:45 +0000)
Reference: Numerical -eq does not dereference in [..]. Expand or use
string operator. https://github.com/koalaman/shellcheck/wiki/SC2170

unitproc/bktemplate

index 81cd17c7707e4df699415a06de749043efb18961..b5543b3995b30dd5da41dca37a177af729428e8a 100755 (executable)
@@ -57,7 +57,7 @@ vbm() {
     # License: GPLv3+
     # Ref./Attrib:
 
-    if [ "$OPTION_VERBOSE" == "true" ]; then
+    if [ "$OPTION_VERBOSE" = "true" ]; then
        FUNCTION_TIME=$(date --iso-8601=ns); # Save current time in nano seconds.
        echoerr "[$FUNCTION_TIME] ""$@"; # Display argument text.
     fi