Closed digitalabacus closed 7 years ago
I'm not entirely certain what the PR is doing, there are only changes in one of the example scripts. We have actually made a separate package to deal with the environment extraction. https://github.com/ioquatix/shell-environment
@brianmoquin can you please review https://github.com/ioquatix/shell-environment and see if this patch is still relevant? We fixed a bunch of issues relating to this already. Thanks for your contribution.
@digitalabacus can you please review this and let me know if this still needs work.
Bash environment variables can be in the form « declare -x NAME="VALUE" ». This patch fixes that issue by stripping the "declare -x" prefix, stripping the surrounding quotes from the value, and replacing double backslashes with single backslashes in the value.