Skip to content

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