You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fatal "No stable release found. If you want the nightly build, run:\n curl -sfL https://raw.githubusercontent.com/${GITHUB_REPO}/main/install.sh | CREATEOS_CHANNEL=nightly sh -"
114
+
}
115
+
VERSION="$(printf '%s'"${RELEASE_JSON}"| grep '"tag_name"'| sed 's/.*"tag_name": *"\([^"]*\)".*/\1/')"
113
116
elifcommand -v wget > /dev/null 2>&1;then
114
-
VERSION="$(wget -qO- "${LATEST_URL}"| grep '"tag_name"'| sed 's/.*"tag_name": *"\([^"]*\)".*/\1/')"
117
+
RELEASE_JSON="$(wget -qO- "${LATEST_URL}")"|| {
118
+
fatal "No stable release found. If you want the nightly build, run:\n curl -sfL https://raw.githubusercontent.com/${GITHUB_REPO}/main/install.sh | CREATEOS_CHANNEL=nightly sh -"
119
+
}
120
+
VERSION="$(printf '%s'"${RELEASE_JSON}"| grep '"tag_name"'| sed 's/.*"tag_name": *"\([^"]*\)".*/\1/')"
115
121
else
116
122
fatal "curl or wget is required to download createos."
0 commit comments