Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

CI/CD minor

Rich Turner29116c334121
diff --git a/.ci_cd/aws/refresh_ssh_whitelist.sh b/.ci_cd/aws/refresh_ssh_whitelist.sh
index c7ac26ae9..e98522820 100644
--- a/.ci_cd/aws/refresh_ssh_whitelist.sh
+++ b/.ci_cd/aws/refresh_ssh_whitelist.sh
@@ -57,7 +57,7 @@ fi
SSH_LIST=$(aws ssm get-parameters-by-path --path "/SSH-Whitelist" --query "Parameters[*].[Name,Value]" --output text)
IFS=$' \t'
-AWS
+
for ACCOUNT_ID in $ACCOUNT_IDS; do
# Update github-da profile with ARN for ACCOUNT_ID
source "${awsDir}set_github-da_account_arn.sh"
diff --git a/.ci_cd/aws/ssh_revoke.sh b/.ci_cd/aws/ssh_revoke.sh
index cf426bc60..80624509e 100644
--- a/.ci_cd/aws/ssh_revoke.sh
+++ b/.ci_cd/aws/ssh_revoke.sh
@@ -21,7 +21,7 @@ if [ "$AWS_ENABLED" != 'true' ]; then
exit 1
fi
-if [ "$AWS_PROFILE" ]; then
+if [ -n "$AWS_PROFILE" ]; then
PROFILE="--profile $AWS_PROFILE"
fi
diff --git a/.ci_cd/aws/ssh_whitelist.sh b/.ci_cd/aws/ssh_whitelist.sh
index e2f907aec..84bd21865 100644
--- a/.ci_cd/aws/ssh_whitelist.sh
+++ b/.ci_cd/aws/ssh_whitelist.sh
@@ -21,7 +21,7 @@ if [ "$AWS_ENABLED" != 'true' ]; then
exit 1
fi
-if [ "$AWS_PROFILE" ]; then
+if [ -n "$AWS_PROFILE" ]; then
PROFILE="--profile $AWS_PROFILE"
fi