diff --git a/script/gce-grpc-test-server b/script/gce-grpc-test-server index b7c3449d4..feec547cf 100755 --- a/script/gce-grpc-test-server +++ b/script/gce-grpc-test-server @@ -79,7 +79,7 @@ echo "Creating a GCE-VM ${INSTANCE}" function remote() { echo "Remotely run command: $*" - ${GCLOUD} compute ssh "${INSTANCE}" -- "${COMMON_ARGS[@]}" --command="$*" \ + ${GCLOUD} compute ssh "${INSTANCE}" "${COMMON_ARGS[@]}" --command="$*" \ || error_exit "Failed to remotely run command: $*" } diff --git a/script/linux-gae-instance b/script/linux-gae-instance index 453967e0d..7c3a4c09f 100755 --- a/script/linux-gae-instance +++ b/script/linux-gae-instance @@ -177,7 +177,7 @@ function download_nginx_logs() { retry -n 2 -s 10 \ ${GCLOUD} compute ssh --project=${PROJECT} --zone=${vm_zone} ${vm_name} \ - "-- sudo tar czf \"${remote_archive}\" /var/log/ ; sudo chmod 777 \"${remote_archive}\"" \ + --command="\"sudo tar czf ${remote_archive} /var/log/; sudo chmod 777 ${remote_archive}\"" \ || error_exit "Cannot tar backend VM logs." retry -n 2 -s 10 \ diff --git a/script/rapture-test-gce-install b/script/rapture-test-gce-install index 55a493e12..cb9c993ce 100755 --- a/script/rapture-test-gce-install +++ b/script/rapture-test-gce-install @@ -108,7 +108,7 @@ echo "Copying the script to VM" || error_exit "Failed to copy install script to VM." echo "Run the script in VM" -"${GCLOUD}" compute ssh "${INSTANCE}" -- "${COMMON_ARGS[@]}" \ +"${GCLOUD}" compute ssh "${INSTANCE}" "${COMMON_ARGS[@]}" \ --command=./install.sh \ || error_exit "Failed to install the package in VM."