From f1d583bfdaf881116e5f9ca9e050307e7acdc28e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 27 Jun 2018 13:30:37 +0200 Subject: [PATCH] Allow to pass arguments in puppet_reset_and_apply --- modules/base_installation/files/scripts/puppet_reset_and_apply | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/base_installation/files/scripts/puppet_reset_and_apply b/modules/base_installation/files/scripts/puppet_reset_and_apply index 0350e6e..7ec7053 100644 --- a/modules/base_installation/files/scripts/puppet_reset_and_apply +++ b/modules/base_installation/files/scripts/puppet_reset_and_apply @@ -6,9 +6,10 @@ git fetch origin branch="master" if [ -n "$1" ]; then branch="$1" + shift fi git reset --hard origin/$branch git submodule update --init -puppet_apply --test manifests/site.pp +puppet_apply "$@" --test manifests/site.pp -- 2.41.0