From 34c9019784c4b55c7ba8dd4debbb2b2135a0c6c7 Mon Sep 17 00:00:00 2001 From: SgtBatten Date: Tue, 23 Apr 2019 08:17:42 +1000 Subject: [PATCH] Correctly display latest version --- update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index c587b7a..902b625 100644 --- a/update.sh +++ b/update.sh @@ -1,7 +1,7 @@ #!/bin/bash ### 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. ### For simplicity each ProfitTrailer.jar file should be nested exactly one subfolder. @@ -266,8 +266,9 @@ echo " Update" echo "##################################################" echo $(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)" +fi echo read -p "Do you want to continue? (Y/N) " continue echo