File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set -euo pipefail
44# Syndicate CLI Installer
55# Usage:
66# curl -L https://raw.githubusercontent.com/SyndicateProtocol/syndicate-appchains/main/synd-cli/install.sh | bash
7- # curl -L https://raw.githubusercontent.com/SyndicateProtocol/syndicate-appchains/main/synd-cli/install.sh | SYND_VERSION=synd-cli-v1 .0.0 bash
7+ # curl -L https://raw.githubusercontent.com/SyndicateProtocol/syndicate-appchains/main/synd-cli/install.sh | SYND_VERSION=1 .0.0 bash
88
99REPO=" SyndicateProtocol/syndicate-appchains"
1010INSTALL_DIR=" ${SYND_INSTALL_DIR:- $HOME / .synd/ bin} "
@@ -60,7 +60,7 @@ get_latest_version() {
6060 head -n 1 || true)
6161
6262 if [[ -z " $latest " ]]; then
63- 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"
63+ error " Failed to fetch latest synd-cli version. Please check your internet connection or specify a version with SYND_VERSION=X .Y.Z"
6464 fi
6565
6666 echo " $latest "
@@ -191,6 +191,9 @@ main() {
191191 if [[ -z " $version " ]]; then
192192 info " Fetching latest version..."
193193 version=$( get_latest_version)
194+ else
195+ # User provided version - add the synd-cli-v prefix
196+ version=" synd-cli-v${version} "
194197 fi
195198 info " Version: ${version} "
196199
You can’t perform that action at this time.
0 commit comments