aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:02:20 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-12 13:02:20 -0400
commit491e7e591a3696420bf98e53f96db694beb8c1bd (patch)
tree2795b9b13f46bfcb466cda8e767b7b4b3591dd94 /cbt
parentadf8e6949f9fdad5f8cfc0e046666f28b9085a2f (diff)
downloadcbt-491e7e591a3696420bf98e53f96db694beb8c1bd.tar.gz
cbt-491e7e591a3696420bf98e53f96db694beb8c1bd.tar.bz2
cbt-491e7e591a3696420bf98e53f96db694beb8c1bd.zip
be smarter about when to enable logging in the bash script
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt9
1 files changed, 5 insertions, 4 deletions
diff --git a/cbt b/cbt
index e14830e..4742b33 100755
--- a/cbt
+++ b/cbt
@@ -42,10 +42,11 @@ log () {
msg=$1
enabled=1
while test $# -gt 0; do
- case "$1" in
- "-Dlog=time") enabled=0 ;;
- "-Dlog=all") enabled=0 ;;
- esac
+ if [[ "$1" == "-Dlog="* ]]; then
+ if [[ "$1" == *"time"* ]] || [[ "$1" == *"bash"* ]] || [[ "$1" == *"all"* ]]; then
+ enabled=0
+ fi
+ fi
shift
done
if [ $enabled -eq 0 ]; then