diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-02-13 09:37:12 -0800 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-02-13 09:37:12 -0800 |
commit | 83172f55e8d7deb47f5deaebe9f9b438b68be8f5 (patch) | |
tree | ebe6c0913e79b8c4738476cd9fb782007bdb22f2 /tools/gce | |
parent | 26583a2618de99d3b948b510159f0d9db8495d3f (diff) |
Fix linux_worker_init.sh to pass shellcheck
Diffstat (limited to 'tools/gce')
-rwxr-xr-x | tools/gce/linux_worker_init.sh | 5 |
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' |