mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-13 10:15:48 +00:00
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:
1 parent
74dc086a80
commit
e5175a044a
1 file changed
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user