File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,20 +43,22 @@ OS=$(echo $OS | awk '{print tolower($0)}')
4343VERSION=$( get_latest_release_number)
4444echo " Installing spp-cli $VERSION "
4545
46+ ARCHIVE_NAME=" spp-cli-$VERSION -${OS} 64.zip"
47+
4648# Download the binary package.
47- curl -sSLO " https://github.com/sourceplusplus/interface-cli/releases/download/$VERSION /spp-cli- $VERSION - ${OS} 64.zip " > /dev/null
48- if [ -f " spp-cli- $VERSION - ${OS} 64.zip " ]; then
49- unzip -q spp-cli- $VERSION - ${OS} 64.zip
49+ curl -sSLO " https://github.com/sourceplusplus/interface-cli/releases/download/$VERSION /$ARCHIVE_NAME " > /dev/null
50+ if [ -f " $ARCHIVE_NAME " ]; then
51+ unzip -q $ARCHIVE_NAME
5052
5153 echo " Adding spp-cli to your PATH"
5254 # Add spp-cli to the environment variable PATH.
5355 sudo mv spp-cli /usr/local/bin/spp-cli
5456
5557 # Delete unnecessary files.
56- rm " ./spp-cli- $VERSION - ${OS} 64.zip "
58+ rm " ./$ARCHIVE_NAME "
5759 echo " Installation complete."
5860
5961 echo " Type 'spp-cli --help' to get more information."
6062else
61- abort " Failed to download spp-cli- $VERSION - ${OS} 64.zip "
63+ abort " Failed to download $ARCHIVE_NAME "
6264fi
You can’t perform that action at this time.
0 commit comments