Skip to content

shebang must be placed at the first line. #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

fujiwara
Copy link
Contributor

Hi!

I'm using zsh. Currently, the script seems to run by a /bin/sh, not by bash.
shebang must be placed at the first line.

$ echo $SHELL
/bin/zsh
$ ./check-ecs-exec.sh
./check-ecs-exec.sh: 10: set: Illegal option -o pipefail

After this patch applied, becomes to run as bash.

$ ./check-ecs-exec.sh 
Usage:
  ./check-ecs-exec.sh YOUR_ECS_CLUSTER_NAME YOUR_ECS_TASK_ID

@toricls
Copy link
Contributor

toricls commented Mar 26, 2021

You're absolutely right, thank you @fujiwara!

@toricls toricls merged commit 4401e82 into aws-containers:main Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants