]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/files/scripts/puppet_reset_and_apply
Fix puppet script
[perso/Immae/Projets/Puppet.git] / modules / base_installation / files / scripts / puppet_reset_and_apply
index ff71aa88da25cde041652e5a1ff0583e488922dc..6743044152de39e24c0ef3bd7e0b37b33b40448a 100644 (file)
@@ -8,7 +8,7 @@ if [ -n "$1" ]; then
   branch="$1"
 fi
 
-git reset --hard origin/$1
+git reset --hard origin/$branch
 
 git submodule update --init
 puppet apply --test manifests/site.pp