Skip to content

Commit fab3314

Browse files
committed
Fix nightly version lookup when no nightly tags
1 parent d94e648 commit fab3314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ get_latest_stable_version() {
107107
get_latest_nightly_version() {
108108
local url="https://api.github.com/repos/${GITHUB_REPO}/releases?per_page=20"
109109
local version
110-
version=$(fetch_github_json "$url" | grep '"tag_name"' | grep 'nightly' | head -n 1 | sed -E 's/.*"tag_name": *"v?([^"]+)".*/\1/')
110+
version=$(fetch_github_json "$url" | grep '"tag_name"' | grep 'nightly' | head -n 1 | sed -E 's/.*"tag_name": *"v?([^"]+)".*/\1/' || true)
111111

112112
if [[ -z "$version" ]]; then
113113
error "Failed to fetch latest nightly version from GitHub. Please check your internet connection."

0 commit comments

Comments
 (0)