-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
*: Replace '$(pwd)' with '${PWD}' #192
*: Replace '$(pwd)' with '${PWD}' #192
Conversation
1c6deec
to
e9f768e
Compare
@@ -5,7 +5,7 @@ echo "Rendering Kubernetes core manifests..." | |||
|
|||
# shellcheck disable=SC2154 | |||
/usr/bin/docker run \ | |||
--volume "$(pwd)":/assets:z \ | |||
--volume "${PWD}:/assets:z" \ |
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.
Hmm, this may not play well with template replacement (e.g. see the $$
further down).
PWD is in POSIX [1], so there's no need to execute a pwd process to get this value. This fixes everthing found by: $ git grep '\(pwd\)' except for hack/*.sh, which is being addressed by [2]. I'm using $PWD instead of ${PWD} in the module files to avoid them being interpolated [3] on template rendering [4]. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03 [2]: openshift#174 [3]: https://www.terraform.io/docs/configuration/interpolation.html [4]: https://www.terraform.io/docs/providers/template/d/file.html
e9f768e
to
a480782
Compare
retest this please |
The e2e-aws error was:
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PWD
is in POSIX, so there's no need to execute apwd
process to get this value. This fixes everthing found by:$ git grep '\(pwd\)'
except for
hack/*.sh
, which is being addressed by #174.