Skip to content

Commit b0c0bd1

Browse files
committed
update readme and install script fix
1 parent 7b14bdd commit b0c0bd1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

synd-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Run `synd-cli` to see all available commands. Main command categories:
108108
- `appchain handoff` - Transfer contract ownership
109109
- `appchain arb-owner` - Manage Arbitrum owner operations
110110
- `appchain check-token-bridge` - Verify token bridge setup
111-
- `appchain e2e` - Run end-to-end tests
111+
- `appchain e2e` - Run end-to-end tests for an appchain
112112
- `alias` - Calculate L1->L2 aliased addresses
113113

114114
Each command supports:

synd-cli/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ warn() {
2525
}
2626

2727
error() {
28-
printf "${RED}error${NC}: %s\n" "$1"
28+
printf "${RED}error${NC}: %s\n" "$1" >&2
2929
exit 1
3030
}
3131

@@ -52,11 +52,12 @@ detect_platform() {
5252
get_latest_version() {
5353
local latest
5454
# Find the latest synd-cli release (tags starting with "synd-cli-")
55+
# The "|| true" prevents pipefail from exiting the script when no version is found
5556
latest=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases" | \
5657
grep '"tag_name"' | \
5758
sed -E 's/.*"([^"]+)".*/\1/' | \
5859
grep '^synd-cli-' | \
59-
head -n 1)
60+
head -n 1 || true)
6061

6162
if [[ -z "$latest" ]]; then
6263
error "Failed to fetch latest synd-cli version. Please check your internet connection or specify a version with SYND_VERSION=synd-cli-vX.Y.Z"

0 commit comments

Comments
 (0)