diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-02-13 10:01:48 -0800 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-02-13 10:01:48 -0800 |
commit | d398870d263f5d90e4a43a3939c911694af842a0 (patch) | |
tree | 6f573988b6f48156b28ae57932df0fd9b77afd79 /tools/gce | |
parent | 4bbbfe9f76c8c1caf7451cad16991aefe821edca (diff) |
Fix create_linux_performance_worker.sh to pass shellcheck
Diffstat (limited to 'tools/gce')
-rwxr-xr-x | tools/gce/create_linux_performance_worker.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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" |