dont update if no version url
This commit is contained in:
2
rc
2
rc
@@ -38,6 +38,7 @@ function _q-tools-update-binary {
|
||||
local remote_version
|
||||
current_version=$( cat "$QTOOLSPATH"/.version )
|
||||
remote_version=$( curl -f -s -L https://six9.net/software/q-tools/current.txt )
|
||||
if [[ -n "$remote_version" ]]; then
|
||||
if [[ "$remote_version" != "$current_version" ]]; then
|
||||
set -u
|
||||
echo "Update $current_version => $remote_version"
|
||||
@@ -47,6 +48,7 @@ function _q-tools-update-binary {
|
||||
tar xz -C "$QTOOLSPATH"
|
||||
set +u
|
||||
fi
|
||||
fi
|
||||
popd > /dev/null
|
||||
_q-tools-reload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user