Skip to content

Commit 7872c89

Browse files
committed
Appease the linter
1 parent 9878c59 commit 7872c89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on_error() {
1111
local exitCode="$?"
1212
local errorLine="$1"
1313

14+
# If the curl fails, we're already in the error trap...
15+
# shellcheck disable=SC2155
1416
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location "http://169.254.169.254/latest/api/token")
1517

1618
if [[ $exitCode != 0 ]] ; then

0 commit comments

Comments
 (0)