-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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 shellcheck in test/e2e_node/jenkins/... #74488
fix shellcheck in test/e2e_node/jenkins/... #74488
Conversation
@@ -22,15 +22,15 @@ set -x | |||
|
|||
: "${1:?Usage test/e2e_node/jenkins/conformance-node-jenkins.sh <path to properties>}" | |||
|
|||
. $1 | |||
. "${1}" |
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.
why change:
In ./test/e2e_node/jenkins/conformance/conformance-jenkins.sh line 25:
. $1
^-- SC2086: Double quote to prevent globbing and word splitting.
@@ -23,7 +23,7 @@ if ! dpkg-query -W cuda; then | |||
dpkg -i ./cuda-repo-ubuntu1404_8.0.61-1_amd64.deb | |||
apt-get update | |||
apt-get install cuda -y | |||
apt-get install linux-headers-$(uname -r) -y | |||
apt-get install linux-headers-"$(uname -r)" -y |
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.
why change:
In ./test/e2e_node/jenkins/ubuntu-14.04-nvidia-install.sh line 26:
apt-get install linux-headers-$(uname -r) -y
^---------^ SC2046: Quote this to prevent word splitting.
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.
we usually quote the whole string:
apt-get install linux-headers-"$(uname -r)" -y | |
apt-get install "linux-headers-$(uname -r)" -y |
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.
modified
/assign @dashpole @BenTheElder |
/lgtm |
one minor nit, generally looks good, thank you! |
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.
/approve
/assign @shashidharatd |
update pull request
b3fccc0
to
4b38978
Compare
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.
/lgtm
/assign @fejta |
/assign @dims |
/approve @BenTheElder the comment from your hack/OWNER gives me plausible deniability :) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, dims, xichengliudui 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 |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Ref #72956
Special notes for your reviewer:
Does this PR introduce a user-facing change?: