mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
runrole - emit 'Usage' when --reinstall is in the wrong position
This commit is contained in:
parent
5431427467
commit
7b785df127
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