Skip to content

Commit

Permalink
update fixed
Browse files Browse the repository at this point in the history
Small fix!
  • Loading branch information
QROkes committed May 23, 2020
1 parent ba2f121 commit daf9a18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/webin
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,14 @@ webinoly_update() {
else
checkver=$(wget --timeout=10 -t 1 -qO- https://api.webinoly.com/check?text=true)
currentver=$(conf_read app-version)
if [[ -n $checkver && ${checkver//.} -gt ${currentver//.} ]]; then
if [[ -n $checkver && -n $currentver && ${currentver//.} -ge ${checkver//.} ]]; then
echo "${gre}You currently have the latest version!${end}"
exit 0
elif [[ -z $checkver || -z $currentver ]]; then
echo "${red}[ERROR] Version number unavailable!${end}"
exit 1
else
echo "${dim}Updating...${end}"
fi
fi

Expand Down

0 comments on commit daf9a18

Please sign in to comment.