From 61b243e02e1f931475cee6af954b2969f6276e42 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Sat, 11 Jul 2020 04:10:40 +0000 Subject: [PATCH] fix(bklog):Fix boolean '-' test in magicParseProcessStrings() --- exec/bklog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/bklog b/exec/bklog index 7dff30d..52f6eb1 100644 --- a/exec/bklog +++ b/exec/bklog @@ -859,7 +859,7 @@ magicParseProcessStrings() { if [[ -z "$element" ]]; then yell "ERROR:Empty output file extension specified. Exiting."; exit 1; fi; done ## Make sure that no process string starts with '-' (ex: if only one arg supplied after '-p' option) for element in "${argProcStrings[@]}"; do - if [[ ! "$element" =~ ^[-][[:print:]]*$ ]] && [[ "$element" =~ ^[[:print:]]*$ ]]; then + if [[ "$element" =~ ^[-][[:print:]]*$ ]] && [[ ! "$element" =~ ^[[:print:]]*$ ]]; then yell "ERROR:Illegal character '-' at start of process string element:\"$element\""; exit 1; fi; done; vbm "STATUS:Quick check shows argProcStrings and argProcFileExts appear to have valid contents."; -- 2.30.2