aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce/create_linux_worker.sh
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:34:06 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:34:06 -0800
commit26583a2618de99d3b948b510159f0d9db8495d3f (patch)
treed7b2384270f55fbdf7ba152a3391b42509d5887b /tools/gce/create_linux_worker.sh
parent5ffb196c82cc0a659512959f7f89320f7db40277 (diff)
Fix create_linux_worker.sh to pass shellcheck
Diffstat (limited to 'tools/gce/create_linux_worker.sh')
-rwxr-xr-xtools/gce/create_linux_worker.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gce/create_linux_worker.sh b/tools/gce/create_linux_worker.sh
index 8bf44aa729..a93d8c5e83 100755
--- a/tools/gce/create_linux_worker.sh
+++ b/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"