diff options
author | Mehrdad Afshari <mmx@google.com> | 2018-02-13 09:33:22 -0800 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2018-02-13 09:33:22 -0800 |
commit | 5ffb196c82cc0a659512959f7f89320f7db40277 (patch) | |
tree | af2c261e4b55b6d552292846813ac9d08e692ba6 /tools | |
parent | 8224c45866c6a2cfa29ede0c91a6ae9f40572658 (diff) |
Fix create_interop_worker.sh to pass shellcheck
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gce/create_interop_worker.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gce/create_interop_worker.sh b/tools/gce/create_interop_worker.sh index 3e59dc501a..205c0bf8c5 100755 --- a/tools/gce/create_interop_worker.sh +++ b/tools/gce/create_interop_worker.sh @@ -20,14 +20,14 @@ set -ex -cd $(dirname $0) +cd "$(dirname "$0")" CLOUD_PROJECT=grpc-testing ZONE=us-east1-a # canary gateway is reachable from this zone INSTANCE_NAME="${1:-grpc-canary-interop2}" -gcloud compute instances create $INSTANCE_NAME \ +gcloud compute instances create "$INSTANCE_NAME" \ --project="$CLOUD_PROJECT" \ --zone "$ZONE" \ --machine-type n1-standard-16 \ @@ -42,9 +42,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" |