mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Merge pull request #2374 from jvonau/shoot_foot
runrole - emit 'Usage' when --reinstall is in the wrong position
This commit is contained in:
commit
db82268377
1 changed files with 1 additions and 1 deletions
2
runrole
2
runrole
|
@ -14,7 +14,7 @@ if [ ! -f $PLAYBOOK ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
if [[ $# -eq 0 ]] || [ "$2" == "--reinstall" ] || [ "$3" == "--reinstall" ] ; then
|
||||
echo "Usage: ./runrole <name of role>"
|
||||
echo "Usage: ./runrole --reinstall <name of role>"
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue