Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

Commit b9051c6

Browse files
authored
fix: install script failing silently on inner non-root script erroring (#545)
Signed-off-by: Joshua Barnett <[email protected]>
1 parent ad72212 commit b9051c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pulumi/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ check_packages ca-certificates curl
3232
# substituted inside the $_REMOTE_USER shell. Particularily $HOME which needs to
3333
# be from the $_REMOTE_USER, and $VERSION which needs to come from this script.
3434
sudo -iu "$_REMOTE_USER" <<EOF
35+
set -eo pipefail
36+
3537
# making sure shell configs are there, as pulumi installation script rely on
3638
# their existance in order to add its binary to the user's PATH
3739
if [ ! -f "\${HOME}/.bashrc" ] || [ ! -s "\${HOME}/.bashrc" ] ; then

0 commit comments

Comments
 (0)