Skip to content

Commit 4a8c1f2

Browse files
committed
CI: check for specific value instead of presence
1 parent 58728f1 commit 4a8c1f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/tasks/firewall-rules/configure-windows-firewall-rules.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ set -x
66
# This script ensures that the concourse worker egress IPs have access on the
77
# WinRM port (5985).
88
# Set firewall rules in the GCP project if needed
9-
if [ -n "${CONFIGURE_GCP}" ]; then
9+
if [ "${CONFIGURE_GCP:-}" == "true" ]; then
1010
comma_separated_external_ips=""
11-
for external_ip in $ALLOWED_IP_ADDRESSES; do
11+
for external_ip in ${ALLOWED_IP_ADDRESSES}; do
1212
comma_separated_external_ips="${external_ip}/32,${comma_separated_external_ips}"
1313
done
1414
comma_separated_external_ips="${comma_separated_external_ips%,}"
@@ -21,7 +21,7 @@ fi
2121

2222
# Set firewall rules in the AWS project
2323
aws_ip_ranges=""
24-
for external_ip in $ALLOWED_IP_ADDRESSES; do
24+
for external_ip in ${ALLOWED_IP_ADDRESSES}; do
2525
aws_ip_ranges="{CidrIp=${external_ip}/32},${aws_ip_ranges}"
2626
done
2727
aws_ip_ranges="${aws_ip_ranges%,}"

0 commit comments

Comments
 (0)