We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d94e648 commit fab3314Copy full SHA for fab3314
scripts/install.sh
@@ -107,7 +107,7 @@ get_latest_stable_version() {
107
get_latest_nightly_version() {
108
local url="https://api.github.com/repos/${GITHUB_REPO}/releases?per_page=20"
109
local version
110
- version=$(fetch_github_json "$url" | grep '"tag_name"' | grep 'nightly' | head -n 1 | sed -E 's/.*"tag_name": *"v?([^"]+)".*/\1/')
+ version=$(fetch_github_json "$url" | grep '"tag_name"' | grep 'nightly' | head -n 1 | sed -E 's/.*"tag_name": *"v?([^"]+)".*/\1/' || true)
111
112
if [[ -z "$version" ]]; then
113
error "Failed to fetch latest nightly version from GitHub. Please check your internet connection."
0 commit comments