BUG: check_update

Hi Max!


I found a bug today in "check_update" — it never reports that a new version is available because a line is missing in:


function checkUpdate() {
local localVersion=""
local remoteVersion=""

declareUpdate

if ! isSiteUp; then
informUser ">>> $(getSiteUrl) is not available, cannot check new version"
return 1;
fi

localVersion=$(getLocalVersion)
remoteVersion=$(getLatestVersion)
if [[ -z $remoteVersion ]]; then
informUser ">>> Latest version description is not available, cannot check new version"
return 1
elif [[ $localVersion == [0-9]* ]] && isNewerVersion $localVersion $remoteVersion; then
informUser ">>> Your version: $localVersion"
THIS LINE ------> informUser ">>> New version available: $remoteVersion"
setRemoteVersion $remoteVersion
elif [[ $localVersion != [0-9]* ]]; then
informUser ">>> Cannot compare developer build with production build, would be updated to latest production build availa> informUser ">>> Latest version available: $remoteVersion"
else
informUser ">>> You have latest version: $localVersion"
return 1
fi

return 0
}

Cheers!
 

Max

Administrator
Staff member
Good day.
We confirm the issue. The ticker WCS-4370 is raised.
But webcallserver update command still works.
 
Top