Correctly display latest version

This commit is contained in:
SgtBatten 2019-04-23 08:17:42 +10:00 committed by taniman
parent f59a418c20
commit 34c9019784
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
### Linux .jar Update Script for ProfitTrailer ### Linux .jar Update Script for ProfitTrailer
### LAST UPDATED 11 Apr 2019 ### LAST UPDATED 23 Apr 2019
### Place this script in the root folder where all your individual bot folders are and then execute it. ### Place this script in the root folder where all your individual bot folders are and then execute it.
### For simplicity each ProfitTrailer.jar file should be nested exactly one subfolder. ### For simplicity each ProfitTrailer.jar file should be nested exactly one subfolder.
@ -266,8 +266,9 @@ echo " Update"
echo "##################################################" echo "##################################################"
echo $(tput sgr0) echo $(tput sgr0)
echo "Latest release is version $(tput setaf 6) $latest $(tput sgr0)" echo "Latest release is version $(tput setaf 6) $latest $(tput sgr0)"
if [[$version != $latest]] if [[ ! $version == $latest ]]; then
echo "Updating to version $(tput setaf 6) $version $(tput sgr0)" echo "Updating to version $(tput setaf 6) $version $(tput sgr0)"
fi
echo echo
read -p "Do you want to continue? (Y/N) " continue read -p "Do you want to continue? (Y/N) " continue
echo echo