From c99ef5be8c0403bae19c21138e8d5ed37aa57281 Mon Sep 17 00:00:00 2001 From: mmaster Date: Sun, 23 Aug 2020 04:18:37 +0200 Subject: [PATCH] Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. https://github.com/koalaman/shellcheck/wiki/SC2166 --- RandomVideo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RandomVideo.sh b/RandomVideo.sh index d805778..c113856 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -13,7 +13,7 @@ if [ $# -gt 1 ]; then exit 1 fi -if [ "buzzer" != "$1" -a "cron" != "$1" ]; then +if [ "buzzer" != "$1" ] && [ "cron" != "$1" ]; then echo "Parameter muss \"buzzer\" oder \"cron\" sein" exit 1 fi