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 d6ddd7b commit c2b1172Copy full SHA for c2b1172
resources/get_current_sdk_version.sh
@@ -1,8 +1,17 @@
1
#!/bin/sh
2
3
-if [ -f /usr/bin/curl ]
+LAST_KNOWN_GOOD_VERSION="1.9.40"
4
+
5
+if [ -f $(which curl) ]
6
then
- curl -s https://storage.googleapis.com/appengine-sdks/featured/VERSION | grep release | awk -F '\"' '{print $2}'
7
+ VERSION=$(curl -s https://storage.googleapis.com/appengine-sdks/featured/VERSION | grep release | awk -F '\"' '{print $2}')
8
else
- wget -q -O - https://storage.googleapis.com/appengine-sdks/featured/VERSION | grep release | awk -F '\"' '{print $2}'
9
+ VERSION=$(wget -q -O - https://storage.googleapis.com/appengine-sdks/featured/VERSION | grep release | awk -F '\"' '{print $2}')
10
fi
11
12
+if [ VERSION="0.0.0" ]
13
+then
14
+ VERSION=$LAST_KNOWN_GOOD_VERSION
15
+fi
16
17
+echo $VERSION
0 commit comments