1
0
Fork 0
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:
A Holt 2020-04-29 09:47:09 -04:00 committed by GitHub
commit db82268377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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