Skip to content
Snippets Groups Projects
Commit 18c195b0 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

utils/new_module: Fix covscan findings

warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well
  defined.
parent e2f39415
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ author=$2 ...@@ -73,7 +73,7 @@ author=$2
email=$3 email=$3
year=$(date +"%Y") 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 "$name" ] && echo "ERROR: name is not valid"
[ -z "$author" ] && echo "ERROR: author is not valid" [ -z "$author" ] && echo "ERROR: author is not valid"
[ -z "$email" ] && echo "ERROR: email is not valid" [ -z "$email" ] && echo "ERROR: email is not valid"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment