aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:38:16 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 09:38:16 -0800
commit364158574fb7e2cc9d797ea7a481a3cd08844017 (patch)
tree878fdd3fb3ab3189cf73aa01eedbc9fc02487465 /tools/gce
parent83172f55e8d7deb47f5deaebe9f9b438b68be8f5 (diff)
Fix create_linux_kokoro_performace_worker.sh to pass shellcheck
Diffstat (limited to 'tools/gce')
-rwxr-xr-xtools/gce/create_linux_kokoro_performance_worker.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gce/create_linux_kokoro_performance_worker.sh b/tools/gce/create_linux_kokoro_performance_worker.sh
index a25cc5b6a3..d08a1aa2c6 100755
--- a/tools/gce/create_linux_kokoro_performance_worker.sh
+++ b/tools/gce/create_linux_kokoro_performance_worker.sh
@@ -17,7 +17,7 @@
set -ex
-cd $(dirname $0)
+cd "$(dirname "$0")"
CLOUD_PROJECT=grpc-testing
ZONE=us-central1-b # this zone allows 32core machines
@@ -25,7 +25,7 @@ ZONE=us-central1-b # this zone allows 32core machines
INSTANCE_NAME="${1:-grpc-kokoro-performance-server1}"
MACHINE_TYPE=n1-standard-32
-gcloud compute instances create $INSTANCE_NAME \
+gcloud compute instances create "$INSTANCE_NAME" \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
--machine-type $MACHINE_TYPE \
@@ -41,9 +41,9 @@ sleep 60
gcloud compute copy-files \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
- kokoro_performance.pub linux_kokoro_performance_worker_init.sh kbuilder@${INSTANCE_NAME}:~
+ kokoro_performance.pub linux_kokoro_performance_worker_init.sh "kbuilder@${INSTANCE_NAME}":~
gcloud compute ssh \
--project="$CLOUD_PROJECT" \
--zone "$ZONE" \
- kbuilder@${INSTANCE_NAME} --command "./linux_kokoro_performance_worker_init.sh"
+ "kbuilder@${INSTANCE_NAME}" --command "./linux_kokoro_performance_worker_init.sh"