Skip to content

Commit 6be3cbc

Browse files
fix bash script typos (#696)
* fix typo * fix typo pt2 * fix typo pt3
1 parent 2948776 commit 6be3cbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitlab/scripts/publish_layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ STAGES=('prod', 'sandbox', 'staging')
2020
expected_length=${#AWS_CLI_NODE_VERSIONS[@]}
2121
if [[ ${#LAYER_PATHS[@]} -ne $expected_length ]] || \
2222
[[ ${#LAYERS[@]} -ne $expected_length ]] || \
23-
[[ ${#AVAILABLE_LAYERS[@]} -ne $expected_length ]]; then; then
23+
[[ ${#NODE_VERSIONS[@]} -ne $expected_length ]]; then
2424
echo "ERROR: arguments AWS_CLI_NODE_VERSIONS, LAYER_PATHS, LAYERS, and NODE_VERSIONS must have the same number of entries."
2525
echo "AWS_CLI_NODE_VERSIONS has ${#AWS_CLI_NODE_VERSIONS[@]} entries."
2626
echo "LAYER_PATHS has ${#LAYER_PATHS[@]} entries."

scripts/add_new_region.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LAYER_NAMES=("Datadog-Node18-x", "Datadog-Node20-x" "Datadog-Node22-x" "Datadog-
66
NODE_VERSIONS_FOR_AWS_CLI=("nodejs18.x" "nodejs20.x" "nodejs22.x" "nodejs24.x")
77

88
# Ensure the argument arrays have the same length
9-
if [[ ${#LAYER_NAMES[@]} -ne ${#NODE_VERSIONS_FOR_AWS_CLI[@]} ]] then
9+
if [[ ${#LAYER_NAMES[@]} -ne ${#NODE_VERSIONS_FOR_AWS_CLI[@]} ]]; then
1010
echo "ERROR: arguments LAYER_NAMES and NODE_VERSIONS_FOR_AWS_CLI must have the same number of entries."
1111
echo "LAYER_NAMES has ${#LAYER_NAMES[@]} entries."
1212
echo "NODE_VERSIONS_FOR_AWS_CLI has ${#NODE_VERSIONS_FOR_AWS_CLI[@]} entries."

0 commit comments

Comments
 (0)