mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +00:00
utils/new_module: Fix covscan findings
warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user