mirror of
https://github.com/byReqz/conn.git
synced 2024-12-26 13:31:48 +00:00
fix for -u getting stuck
This commit is contained in:
parent
351190b796
commit
e9a6149c6d
4
conn.sh
4
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 "#############################################"
|
||||
|
Loading…
Reference in New Issue
Block a user