TT#8883 Fix 40345a: fix while condition exit cause

Otherwise infinite loop happens as variable repeat is always true.

Change-Id: I03c618b7ab966bb6e81f8f26737c251d8a72083c
changes/33/10733/1
Alexander Lutay 9 years ago
parent 40345a6797
commit d960d6bf33

@ -2225,6 +2225,8 @@ puppet_install_from_puppet () {
local repeat=true
while $repeat ; do
repeat=false
echo "Running Puppet core deployment..."
grml-chroot $TARGET puppet agent --test --tags core,apt 2>&1 | tee -a /tmp/puppet.log
check_puppet_rc "${PIPESTATUS[0]}" "2"
@ -2243,7 +2245,6 @@ puppet_install_from_puppet () {
;;
*)
echo "Continue without repeating puppet run."
repeat=false
;;
esac
unset a

Loading…
Cancel
Save