You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local -rl AWSECURE_CLI_VALIDATE_COMMANDS=(jq ${AWSECURE_CLI_AWS_BIN_FILEPATH}${AWSECURE_CLI_SH_INTERPRETER})
7
+
forcmdin${AWSECURE_CLI_VALIDATE_COMMANDS};do
8
+
awsecure_cli_log_info "Testing if ${cmd} is installed"
9
+
${cmd} --version &> /dev/null || awsecure_cli_log_error "The ${cmd} is not installed or not in the PATH environment variable"
10
+
done
11
+
}
12
+
13
+
case"${AWSECURE_CLI_OS_NAME///}"in
14
+
darwin)
15
+
true
16
+
;;
17
+
linux)
18
+
true
19
+
;;
20
+
*)
21
+
awsecure_cli_log_error "OS not supported"
22
+
;;
23
+
esac
24
+
25
+
awsecure_cli_validate_commands
26
+
27
+
set +eo pipefail
28
+
${AWSECURE_CLI_AWS_BIN_FILEPATH} configure get aws_access_key_id > /dev/null 2>&1
29
+
[[ $?-ne 0 ]] && { awsecure_cli_log_info "The profile ${AWS_PROFILE} is not using an AWS access key, skipping AWS access key rotation"; SKIP_AWSECURE_CLI_AUTOROTATE_AWS_ACCESS_KEYS=true ; }
0 commit comments