Fix create_linux_worker.sh to pass shellcheck

pull/14415/head
Mehrdad Afshari 7 years ago
parent 5ffb196c82
commit 26583a2618
  1. 8
      tools/gce/create_linux_worker.sh

@ -17,14 +17,14 @@
set -ex
cd $(dirname $0)
cd "$(dirname "$0")"
CLOUD_PROJECT=grpc-testing
ZONE=us-central1-a
INSTANCE_NAME="${1:-grpc-jenkins-worker1}"
gcloud compute instances create $INSTANCE_NAME \
gcloud compute instances create "$INSTANCE_NAME" \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
--machine-type n1-standard-16 \
@ -40,9 +40,9 @@ sleep 60
gcloud compute copy-files \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
jenkins_master.pub linux_worker_init.sh ${INSTANCE_NAME}:~
jenkins_master.pub linux_worker_init.sh "${INSTANCE_NAME}":~
gcloud compute ssh \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
$INSTANCE_NAME --command "./linux_worker_init.sh"
"$INSTANCE_NAME" --command "./linux_worker_init.sh"

Loading…
Cancel
Save