-
Notifications
You must be signed in to change notification settings - Fork 2
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
Always use local variables when storing the options to prevent overri… #754
Conversation
…ding in sub functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you
- Add a test
- Add
local
to all local variables in the bash functions
Not sure how I somehow missed this in the first place
yes, yes. working on it. |
code was becoming duplicated too much, moved to TestHelper.scala
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor suggestion, otherwise LGTM!
src/main/resources/io/viash/helpers/bashutils/ViashDockerFuns.sh
Outdated
Show resolved
Hide resolved
Co-authored-by: Robrecht Cannoodt <[email protected]>
…ding in sub functions
Describe your changes
Use
local
consistently when executingsave=$-; set +e
in the bash wrapper.Essentially, the
-e
option wasn't being set again.To give a more clear explanation of what's going on:
results in:
Related issue(s)
Closes #753
Type of Change
Checklist
Requirements:
Tests:
Documentation:
Test Environment