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.
This commit is contained in:
viettranx committed 2026-03-27 10:31:03 +07:00
1 parent 74dc086a80
commit e5175a044a
1 file changed
+1 -1
+1 -1
View File
@@ -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"