aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
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