Przeglądaj źródła

fix: redirect log output to stderr in get_latest_release to prevent URL corruption

xcad 7 miesięcy temu
rodzic
commit
249861a253
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      scripts/install.sh

+ 1 - 1
scripts/install.sh

@@ -213,7 +213,7 @@ get_latest_release() {
   local api_url="https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/releases/latest"
   local release_tag
   
-  log "Fetching latest release information..."
+  log "Fetching latest release information..." >&2
   
   if command -v curl >/dev/null 2>&1; then
     release_tag=$(curl -fsSL "$api_url" | grep '"tag_name":' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')