From 83172f55e8d7deb47f5deaebe9f9b438b68be8f5 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Tue, 13 Feb 2018 09:37:12 -0800 Subject: [PATCH] Fix linux_worker_init.sh to pass shellcheck --- tools/gce/linux_worker_init.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/gce/linux_worker_init.sh b/tools/gce/linux_worker_init.sh index a5d2706ddb1..05855354ff9 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'