Skip to content

Commit

Permalink
Fix create_linux_worker.sh to pass shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdada committed Feb 13, 2018
1 parent 5ffb196 commit 26583a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/gce/create_linux_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"

0 comments on commit 26583a2

Please sign in to comment.