1
0
Fork 0
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:
Jerry Vonau 2020-04-29 07:15:40 -05:00
parent 5431427467
commit 7b785df127

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