File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
cloud-sql/mysql/mysql/test Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash -e
22
33# Copyright 2025 Google LLC
44#
@@ -24,11 +24,17 @@ if [[ $SETUP_STYLE -ne "tcp" ]]; then
2424 socket=" --unix-socket /cloudsql"
2525fi
2626
27- curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/${PROXY_VERSION} /cloud-sql-proxy.linux.amd64
28- if [[ $? -ne 0 ]]; then
29- echo " Failed to download cloud-sql-proxy"
30- exit 1
27+ if [[ -! f cloud-sql-proxy ]]; then
28+
29+ curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/${PROXY_VERSION} /cloud-sql-proxy.linux.amd64
30+ if [[ $? -ne 0 ]]; then
31+ echo " Failed to download cloud-sql-proxy"
32+ exit 1
33+ fi
34+ chmod +x cloud-sql-proxy
35+ else
36+ echo " cloud-sql-proxy already downloaded"
3137fi
32- chmod +x cloud-sql-proxy
38+
3339./cloud-sql-proxy $CLOUD_SQL_CONNECTION_NAME $socket &
3440sleep 10
You can’t perform that action at this time.
0 commit comments