From e5175a044a305b4206b50ba11637ae67addfbb7b Mon Sep 17 00:00:00 2001 From: viettranx Date: Fri, 27 Mar 2026 10:31:03 +0700 Subject: [PATCH] fix(desktop): install script pipefail on missing release grep returns exit 1 when no lite-v* tags exist yet, which pipefail propagates before the -z check. Add || true. --- scripts/install-lite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-lite.sh b/scripts/install-lite.sh index 3f61c826..e4db005a 100755 --- a/scripts/install-lite.sh +++ b/scripts/install-lite.sh @@ -49,7 +49,7 @@ if [[ -z "$VERSION" ]]; then VERSION=$(curl -fsSL "https://api.github.com/repos/$REPO/releases" \ | grep '"tag_name": "lite-v' \ | head -1 \ - | sed 's/.*"tag_name": "\(lite-v[^"]*\)".*/\1/') + | sed 's/.*"tag_name": "\(lite-v[^"]*\)".*/\1/' || true) if [[ -z "$VERSION" ]]; then echo "❌ No desktop release found. Check https://github.com/$REPO/releases"