Skip to content

Commit 1e39769

Browse files
committed
Fix release lookup fallback in bootstrap
1 parent 495d4ca commit 1e39769

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ is_release_ref() {
7272
}
7373

7474
resolve_latest_tag() {
75-
curl -fsSL "https://api.github.com/repos/${GITHUB_REPO}/releases/latest" 2>/dev/null |
76-
sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' |
77-
head -n1 || true
75+
{
76+
curl -fsSL "https://api.github.com/repos/${GITHUB_REPO}/releases/latest" 2>/dev/null |
77+
sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' |
78+
head -n1
79+
} || true
7880
}
7981

8082
parse_args() {

0 commit comments

Comments
 (0)