We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeee380 commit 7f2f2ddCopy full SHA for 7f2f2dd
src/google-cloud-cli/install.sh
@@ -32,11 +32,11 @@ echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.clou
32
apt-get update --yes
33
34
if [ "${GOOGLE_CLOUD_CLI_VERSION}" = "latest" ]; then
35
- apt-get install --no-install-recommends --yes google-cloud-cli
36
-else
37
- apt-get install --no-install-recommends --yes google-cloud-cli="${GOOGLE_CLOUD_CLI_VERSION}"
+ GOOGLE_CLOUD_CLI_VERSION="$(apt show google-cloud-cli 2>/dev/null | sed -nr 's/version: (.+)/\1/ip' | tr -d '\r')"
38
fi
39
+ apt-get install --no-install-recommends --yes google-cloud-cli="${GOOGLE_CLOUD_CLI_VERSION}"
+
40
if [ -n "${curl_installed}" ]; then
41
apt purge curl --autoremove --yes
42
0 commit comments