utils/new_module: Fix covscan findings

warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well
  defined.
This commit is contained in:
Thomas Woerner
2020-12-09 15:57:42 +01:00
parent e2f3941512
commit 18c195b052

View File

@@ -73,7 +73,7 @@ author=$2
email=$3
year=$(date +"%Y")
if [ -z "$name" -o -z "$author" -o -z "$email" ]; then
if [ -z "$name" ] || [ -z "$author" ] || [ -z "$email" ]; then
[ -z "$name" ] && echo "ERROR: name is not valid"
[ -z "$author" ] && echo "ERROR: author is not valid"
[ -z "$email" ] && echo "ERROR: email is not valid"