From d398870d263f5d90e4a43a3939c911694af842a0 Mon Sep 17 00:00:00 2001 From: Mehrdad Afshari Date: Tue, 13 Feb 2018 10:01:48 -0800 Subject: Fix create_linux_performance_worker.sh to pass shellcheck --- tools/gce/create_linux_performance_worker.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/gce') diff --git a/tools/gce/create_linux_performance_worker.sh b/tools/gce/create_linux_performance_worker.sh index e3bc1d577d..e9033ec443 100755 --- a/tools/gce/create_linux_performance_worker.sh +++ b/tools/gce/create_linux_performance_worker.sh @@ -21,7 +21,7 @@ set -ex -cd $(dirname $0) +cd "$(dirname "$0")" CLOUD_PROJECT=grpc-testing ZONE=us-central1-b # this zone allows 32core machines @@ -29,7 +29,7 @@ ZONE=us-central1-b # this zone allows 32core machines INSTANCE_NAME="${1:-grpc-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 \ @@ -45,9 +45,9 @@ sleep 60 gcloud compute copy-files \ --project="$CLOUD_PROJECT" \ --zone "$ZONE" \ - jenkins_master.pub linux_performance_worker_init.sh jenkins@${INSTANCE_NAME}:~ + jenkins_master.pub linux_performance_worker_init.sh "jenkins@${INSTANCE_NAME}":~ gcloud compute ssh \ --project="$CLOUD_PROJECT" \ --zone "$ZONE" \ - jenkins@${INSTANCE_NAME} --command "./linux_performance_worker_init.sh" + "jenkins@${INSTANCE_NAME}" --command "./linux_performance_worker_init.sh" -- cgit v1.2.3