diff --git a/tasks/install_shell.sh b/tasks/install_shell.sh index cfd6df8f..9adf1c41 100644 --- a/tasks/install_shell.sh +++ b/tasks/install_shell.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +set -e + # Install puppet-agent as a task # # From https://github.com/petems/puppet-install-shell/blob/master/install_puppet_5_agent.sh diff --git a/tasks/version_shell.sh b/tasks/version_shell.sh index 9cf35902..d0e4402b 100644 --- a/tasks/version_shell.sh +++ b/tasks/version_shell.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + loc=/opt/puppetlabs/puppet/VERSION if test -f $loc; then echo "{\"version\":\"$(cat $loc)\",\"source\":\"${loc}\"}"