aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:37:12 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:37:12 -0800
commit83172f55e8d7deb47f5deaebe9f9b438b68be8f5 (patch)
treeebe6c0913e79b8c4738476cd9fb782007bdb22f2 /tools/gce
parent26583a2618de99d3b948b510159f0d9db8495d3f (diff)
Fix linux_worker_init.sh to pass shellcheck
Diffstat (limited to 'tools/gce')
-rwxr-xr-xtools/gce/linux_worker_init.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gce/linux_worker_init.sh b/tools/gce/linux_worker_init.sh
index a5d2706ddb..05855354ff 100755
--- a/tools/gce/linux_worker_init.sh
+++ b/tools/gce/linux_worker_init.sh
@@ -66,7 +66,10 @@ rm linux-*
# Add pubkey of jenkins@grpc-jenkins-master to authorized keys of jenkins@
# This needs to happen as the last step to prevent Jenkins master from connecting
# to a machine that hasn't been properly setup yet.
-cat jenkins_master.pub | sudo tee --append ~jenkins/.ssh/authorized_keys
+
+# disable superfluous warning by shellcheck:
+# shellcheck disable=SC2024
+sudo tee --append ~jenkins/.ssh/authorized_keys < jenkins_master.pub
# Restart for docker to pick up the config changes.
echo 'Successfully initialized the linux worker, going for reboot in 10 seconds'