Skip to content
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

fix: nounset shell #141

Merged
merged 16 commits into from
Jun 22, 2023
Merged

fix: nounset shell #141

merged 16 commits into from
Jun 22, 2023

Conversation

brivu
Copy link
Contributor

@brivu brivu commented Jun 21, 2023

When a user specifies a shell for an executor in their config, using shell: /bin/bash -o nounset causes scripts with unbound variables to fail.

This PR resolves this issue.

@brivu brivu requested a review from a team as a code owner June 21, 2023 08:00
@brivu brivu self-assigned this Jun 21, 2023
@brivu brivu linked an issue Jun 21, 2023 that may be closed by this pull request
src/scripts/assume_role_with_web_identity.sh Outdated Show resolved Hide resolved
src/scripts/configure.sh Outdated Show resolved Hide resolved
src/scripts/configure.sh Show resolved Hide resolved
src/scripts/install.sh Outdated Show resolved Hide resolved
src/scripts/install.sh Show resolved Hide resolved
src/scripts/install.sh Outdated Show resolved Hide resolved
src/scripts/role_arn_setup.sh Outdated Show resolved Hide resolved
brivu and others added 6 commits June 21, 2023 14:33
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
@brivu brivu mentioned this pull request Jun 21, 2023
# This is the 1st commit message:

fix: unbound variable in config command

# The commit message #2 will be skipped:

# chore: update src/scripts/assume_role_with_web_identity.sh
#
# Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>

# The commit message #3 will be skipped:

# chore: update src/scripts/configure.sh
#
# Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>

# The commit message #4 will be skipped:

# chore: update src/scripts/role_arn_setup.sh
#
# Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
@brivu brivu merged commit 68298b2 into master Jun 22, 2023
2 checks passed
@brivu brivu deleted the fix/nounset-shell branch June 22, 2023 20:31
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.

aws-cli/setup fails in shells that disallow unset variables
2 participants