Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
18c195b0
Commit
18c195b0
authored
4 years ago
by
Thomas Woerner
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/new_module
+1
-1
1 addition, 1 deletion
utils/new_module
with
1 addition
and
1 deletion
utils/new_module
+
1
−
1
View file @
18c195b0
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment