Skip to content

Commit c3e0312

Browse files
committed
Configure pipeline
1 parent 4823fd2 commit c3e0312

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/production/smrmgr.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,20 @@ Manager(){
138138

139139
Download(){
140140
which curl &> /dev/null || echo "Please install curl before proceeding with installing smr!" | exit 1
141-
echo "Downloading smr and smrctl binary. They will be installed at the /usr/local/bin/smr"
142141

143142
ARCH=$(detect_arch)
144143
PLATFORM="linux-${ARCH}"
145144

146145
VERSION_SMR=${2:-$(curl -sL https://raw.githubusercontent.com/simplecontainer/smr/refs/heads/main/cmd/smr/version --fail)}
146+
VERSION_CTL=${2:-$(curl -sL https://raw.githubusercontent.com/simplecontainer/smr/refs/heads/main/cmd/smrctl/version)}
147+
148+
echo "Downloading smr:$VERSION_SMR and smrctl:$VERSION_CTL binary. They will be installed at the /usr/local/bin/smr"
147149

150+
echo "Downloading: https://github.com/simplecontainer/smr/releases/download/smrctl-$VERSION_SMR/smrctl-$PLATFORM"
148151
curl -Lo smr https://github.com/simplecontainer/smr/releases/download/smrctl-$VERSION_SMR/smrctl-$PLATFORM --fail
149152
chmod +x smr
150153

151-
VERSION_CTL=${2:-$(curl -sL https://raw.githubusercontent.com/simplecontainer/smr/refs/heads/main/cmd/smrctl/version)}
152-
154+
echo "Downloading https://github.com/simplecontainer/smr/releases/download/smrctl-$VERSION_CTL/smrctl-$PLATFORM"
153155
curl -Lo smrctl https://github.com/simplecontainer/smr/releases/download/smrctl-$VERSION_CTL/smrctl-$PLATFORM --fail
154156
chmod +x smrctl
155157

0 commit comments

Comments
 (0)