We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933408d commit 78c6fa8Copy full SHA for 78c6fa8
1 file changed
script/ci-install-android-sdk.sh
@@ -44,12 +44,18 @@ check_cmdline_tools_latest_or_fail() {
44
if [[ ! "$SDK_ARCHIVE" =~ ^commandlinetools-linux-([0-9]+)_latest\.zip$ ]]; then
45
return 0
46
fi
47
-
48
local CURRENT_VER="${BASH_REMATCH[1]}"
49
+ # Temporarily disable xtrace to avoid printing HTML content
50
+ local xtrace_was_on=0
51
+ case "$-" in
52
+ *x*) xtrace_was_on=1; set +x ;;
53
+ esac
54
+
55
# Try to fetch page (fail = skip)
56
local HTML
57
if ! HTML="$(curl -fsSL --connect-timeout 3 --max-time 8 "$STUDIO_URL" 2>/dev/null)"; then
58
+ [[ "$xtrace_was_on" -eq 1 ]] && set -x
59
60
61
@@ -63,6 +69,8 @@ check_cmdline_tools_latest_or_fail() {
63
69
| tail -n 1
64
70
)"
65
71
72
73
66
74
if [[ -z "$LATEST_VER" ]]; then
67
75
68
76
0 commit comments