xcad преди 9 месеца
родител
ревизия
e236f4f75c
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      scripts/install.sh

+ 3 - 2
scripts/install.sh

@@ -240,8 +240,9 @@ download_release() {
   # If version is "latest", resolve it to the actual version tag
   # If version is "latest", resolve it to the actual version tag
   if [[ "$version" == "latest" ]]; then
   if [[ "$version" == "latest" ]]; then
     log "Fetching latest release information..."
     log "Fetching latest release information..."
-    version=$(get_latest_release)
-    if [[ $? -ne 0 ]] || [[ -z "$version" ]]; then
+    version=$(get_latest_release 2>&1)
+    local exit_code=$?
+    if [[ $exit_code -ne 0 ]] || [[ -z "$version" ]] || [[ "$version" == error:* ]]; then
       error "Failed to fetch latest release information"
       error "Failed to fetch latest release information"
     fi
     fi
     log "Latest version is $version"
     log "Latest version is $version"