-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools: use mktemp to create the workspace directory #38432
Conversation
echo "Deleting temporary workspace" | ||
|
||
rm -rf "$WORKSPACE" | ||
tar zxf "$WORKSPACE"/cli/release/npm-"$NPM_VERSION".tgz |
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.
I realize this comes from the previous implementation, but the use of the quotes seems… weird. I think we're supposed to put the whole argument inside one string.
tar zxf "$WORKSPACE"/cli/release/npm-"$NPM_VERSION".tgz | |
tar zxf "${WORKSPACE}/cli/release/npm-${NPM_VERSION}.tgz" |
or
tar zxf "$WORKSPACE"/cli/release/npm-"$NPM_VERSION".tgz | |
tar zxf "$WORKSPACE/cli/release/npm-$NPM_VERSION.tgz" |
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.
This is done in multiple places so I would not change it here. I think it's better to use another PR/commit to eventually make it consistent in the whole script.
On some platforms, the TMPDIR environment variable is not set.
Landed in 63c9b5b. |
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set. PR-URL: #38432 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]>
On some platforms, the TMPDIR environment variable is not set.