From e9a6149c6d442c52045ac12a74f8f9934c855ce7 Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Tue, 19 Jan 2021 19:12:56 +0000 Subject: [PATCH] fix for -u getting stuck --- conn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.sh b/conn.sh index 0e8c881..069d881 100644 --- a/conn.sh +++ b/conn.sh @@ -1,5 +1,5 @@ #!/bin/bash -version=20 +version=21 if [[ $(curl -s https://raw.githubusercontent.com/byReqz/conn/main/version) > "$version" ]] && [[ -z $1 ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/conn/main/version) > "$version" ]] && [[ $1 != "--update" ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/conn/main/version) > "$version" ]] && [[ $1 != "-u" ]];then echo "#############################################" echo -e "\e[4mnote: newer version detected, use -u to update\e[0m" @@ -88,7 +88,7 @@ fi echo -e "\e[4mscript has been updated to the newest version\e[0m" echo "#############################################" exit - elif [[ $(curl -s https://raw.githubusercontent.com/byReqz/conn/main/version) < "$version" ]];then + elif (( $(curl -s https://raw.githubusercontent.com/byReqz/conn/main/version) <= "$version" ));then echo "#############################################" echo "no newer version found" echo "#############################################"