diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-01-10 20:37:44 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-01-10 20:37:55 +0100 |
commit | 2f401f4bc835d1f5ec856d9d55e68b74ca51eebb (patch) | |
tree | cbd1aa5194f426cf8e5d2524960b3188b3a396b8 /apply-role.sh | |
parent | add mac address parameter for vm network (diff) |
helper scripts: optimize argument shifts
Diffstat (limited to 'apply-role.sh')
-rwxr-xr-x | apply-role.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apply-role.sh b/apply-role.sh index 708a8357..0a513b1d 100755 --- a/apply-role.sh +++ b/apply-role.sh @@ -5,9 +5,8 @@ if [ -z "$1" ] || [ -z "$2" ]; then exit 1 fi hosts="$1" -shift -role="$1" -shift +role="$2" +shift 2 cd "${BASH_SOURCE%/*}" source common/utils.sh |