From 7b785df12718e7ad89d9d39a7bfdd000871f60a7 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Wed, 29 Apr 2020 07:15:40 -0500 Subject: [PATCH] runrole - emit 'Usage' when --reinstall is in the wrong position --- runrole | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runrole b/runrole index 6f49f6319..cb8189a60 100755 --- a/runrole +++ b/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 " echo "Usage: ./runrole --reinstall " echo