From bf28c06674574069fddcce0755d8f3d74ebf5d93 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 27 Mar 2023 07:16:43 -0400 Subject: fix puppet-tozt exit code --- modules/base/files/puppet-tozt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/base/files/puppet-tozt b/modules/base/files/puppet-tozt index 4a48ff1..7e91252 100644 --- a/modules/base/files/puppet-tozt +++ b/modules/base/files/puppet-tozt @@ -7,8 +7,9 @@ branch=${1:-main} set +e sudo puppet apply --show_diff --modulepath=/usr/local/share/puppet-tozt/modules --hiera_config=/usr/local/share/puppet-tozt/hiera/hiera.yaml --detailed-exitcodes /usr/local/share/puppet-tozt/manifests -if [ $? -eq 2 ]; then +puppet_exit=$? +if [ $puppet_exit -eq 2 ]; then exit 0 else - exit $? + exit $puppet_exit fi \ No newline at end of file -- cgit v1.2.3-54-g00ecf