We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f5a5d commit 28b8b97Copy full SHA for 28b8b97
src/scripts/assume_role_with_web_identity.sh
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/bash
2
#shellcheck disable=SC1090
3
4
# Ensure variables are loaded from $BASH_ENV as required
@@ -82,6 +82,10 @@ elif [ "${AWS_CLI_BOOL_SET_AWS_ENV_VARS}" = 1 ]; then
82
echo "AWS keys successfully written to BASH_ENV"
83
else
84
temp_file="/tmp/${AWS_CLI_STR_PROFILE_NAME}.keys"
85
+ if [[ "$temp_file" == */* ]]; then
86
+ temp_folder="${temp_file%/*}"
87
+ mkdir -p "$temp_folder"
88
+ fi
89
touch "$temp_file"
90
{
91
echo "export AWS_CLI_STR_ACCESS_KEY_ID=\"${AWS_ACCESS_KEY_ID}\""
0 commit comments