Skip to content

Commit 276b469

Browse files
aaajiaoclaude
andcommitted
fix: avoid grep extended regex through orb shell quoting
The pattern `grep -vE '-(beta|rc|alpha)'` breaks when passed through orb's intermediate shell layer — single quotes are stripped and grep sees `-(` as an invalid option. Use `grep -v -e '-beta' -e '-rc' -e '-alpha'` instead, which avoids parentheses entirely and works reliably across shell quoting layers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 33a75e8 commit 276b469

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openclaw-orbstack-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ else
215215
fi
216216

217217
# Get latest stable release tag (skip beta/rc/alpha pre-releases)
218-
OPENCLAW_VERSION=$(vm_exec "cd ~/openclaw && git tag -l 'v*' | grep -vE '-(beta|rc|alpha)' | sort -V | tail -1")
218+
OPENCLAW_VERSION=$(vm_exec "cd ~/openclaw && git tag -l 'v*' | grep -v -e '-beta' -e '-rc' -e '-alpha' | sort -V | tail -1")
219219
info "$(printf "$MSG_INFO_CHECKOUT_RELEASE" "$OPENCLAW_VERSION")"
220220
vm_exec "cd ~/openclaw && git checkout '$OPENCLAW_VERSION'"
221221

scripts/commands/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ orb -m "$OPENCLAW_VM_NAME" bash -lc "openclaw gateway stop"
8080

8181
echo "$MSG_CMD_UPDATE_PULLING"
8282
orb -m "$OPENCLAW_VM_NAME" bash -lc "cd ~/openclaw && git fetch --tags"
83-
LATEST_TAG=$(orb -m "$OPENCLAW_VM_NAME" bash -lc "cd ~/openclaw && git tag -l 'v*' | grep -vE '-(beta|rc|alpha)' | sort -V | tail -1")
83+
LATEST_TAG=$(orb -m "$OPENCLAW_VM_NAME" bash -lc "cd ~/openclaw && git tag -l 'v*' | grep -v -e '-beta' -e '-rc' -e '-alpha' | sort -V | tail -1")
8484
echo " -> $LATEST_TAG"
8585
orb -m "$OPENCLAW_VM_NAME" bash -lc "cd ~/openclaw && git checkout '$LATEST_TAG'"
8686

0 commit comments

Comments
 (0)