Skip to content

Commit

Permalink
fix: Correct bash strict mode syntax (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Wiebe <[email protected]>
  • Loading branch information
mwiebe authored Jan 29, 2025
1 parent 81c86ee commit ebfe5b8
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 66 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Check Header
run: |
set -eou pipefail
set -euo pipefail
EXPECTED_HEADER="# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved."
for f in $(find samples/ -name '*.yaml')
do
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Run check
run: |
set -eou pipefail
set -euo pipefail
for f in $(find samples/v2023-09/ -name '*.yaml')
do
echo "Checking: $f"
Expand Down
10 changes: 5 additions & 5 deletions samples/v2023-09/job_templates/bash-in-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ steps:
#!/bin/bash
# Any command failure in the script fails the whole thing
set -xeou pipefail
set -xeuo pipefail
# Start the docker container running in the background with a randomly determined container name
# The random name enabled running multiple of this same Job on the same host at the same time.
Expand All @@ -64,12 +64,12 @@ steps:
#!/bin/bash
# Any command failure in the script fails the whole thing
set -xeou pipefail
set -xeuo pipefail
# Get the name of the container, and stop it.
CONTAINER_NAME=$(cat .docker_container_name.txt)
docker stop $CONTAINER_NAME
script:
actions:
onRun:
Expand All @@ -82,8 +82,8 @@ steps:
#!/bin/bash
# Any command failure in the script fails the whole thing
set -eou pipefail
set -euo pipefail
# Get the name of the container.
CONTAINER_NAME=$(cat .docker_container_name.txt)
Expand Down
Loading

0 comments on commit ebfe5b8

Please sign in to comment.