1
0
Fork 0

Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.

https://github.com/koalaman/shellcheck/wiki/SC2166
This commit is contained in:
mmaster 2020-08-23 04:18:37 +02:00
parent 9e4ec6c457
commit c99ef5be8c
1 changed files with 1 additions and 1 deletions

View File

@ -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