Fix linux_worker_init.sh to pass shellcheck

pull/14415/head
Mehrdad Afshari 7 years ago
parent 26583a2618
commit 83172f55e8
  1. 5
      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'

Loading…
Cancel
Save