diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-12 13:02:20 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-12 13:02:20 -0400 |
commit | 491e7e591a3696420bf98e53f96db694beb8c1bd (patch) | |
tree | 2795b9b13f46bfcb466cda8e767b7b4b3591dd94 /cbt | |
parent | adf8e6949f9fdad5f8cfc0e046666f28b9085a2f (diff) | |
download | cbt-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-x | cbt | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |