From 89ef29741c0cbb816112ae34959195586c6645ad Mon Sep 17 00:00:00 2001 From: Alex McGrath Date: Wed, 29 Mar 2023 13:31:48 +0100 Subject: [PATCH] add `set -eu` to discovery installer --- api/types/installers/installer.sh.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/types/installers/installer.sh.tmpl b/api/types/installers/installer.sh.tmpl index 3232f69d11132..d2b880410c5e6 100644 --- a/api/types/installers/installer.sh.tmpl +++ b/api/types/installers/installer.sh.tmpl @@ -1,5 +1,7 @@ #!/bin/sh +set -eu + on_ec2() { EC2_STATUS=$(curl -o /dev/null -w "%{http_code}" -m5 -sS "http://169.254.169.254/latest/meta-data") # EC2 metadata sometimes requires token access, so a successful hit may