File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -138,18 +138,20 @@ Manager(){
138138
139139Download (){
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
You can’t perform that action at this time.
0 commit comments