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(integration): support special characters in exec module #113

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

jta
Copy link
Contributor

@jta jta commented Nov 29, 2023

This commit supports passing in environment variables with special characters to scripts in our "exec" module. The testcase has been modified to exemplify this functionality. Prior to this change, the testcase would fail due the variable getting clobbered after the first argument:

aws: error: argument --output: expected one argument

This commit supports passing in environment variables with special
characters to scripts in our "exec" module. The testcase has been
modified to exemplify this functionality. Prior to this change, the
testcase would fail due the variable getting clobbered after the first
argument:

```
aws: error: argument --output: expected one argument
```
Copy link
Contributor

@obs-gh-colinhutchinson obs-gh-colinhutchinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while you're in the area if desired could we add

if [ -n "${DEBUG:-}" ]; then
    set -x
fi

to the scripts? Approved regardless

@jta
Copy link
Contributor Author

jta commented Nov 29, 2023

Will do in separate PR. I'm inclined to do +x for every case, because otherwise we run the risk of having different behavior between verbose and non-verbose runs (since we currently determine output.error based on last line emitted by script)

@jta jta merged commit f0751e6 into main Nov 29, 2023
12 checks passed
@jta jta deleted the joao/fix-exec branch November 29, 2023 17:31
Copy link

🎉 This PR is included in version 1.3.1-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Dec 4, 2023

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants