1
0
Fork 0
forked from mirrors/openup

Simplify the update check.

This commit is contained in:
Antoine Jacoutot 2013-09-04 15:00:05 +02:00
commit eeee076cca

12
openup
View file

@ -133,13 +133,11 @@ check_openupd() {
_N=$(eval ${_CMD}) || exit 1
fi
if [ -n "${_N}" -o -n "${dryrun}" ]; then
if [ "${_OPENUP_VERSION}" -lt "${_N}" ]; then
pr_error "New openup release (version ${_N}) is available; please update with:"
pr_error "ftp -Vo $(readlink -f $0) ${OPENUP_URL}"
pr_error "Exiting"
exit 1
fi
if [ "${_OPENUP_VERSION}" -lt "${_N}" ]; then
pr_error "New openup release (version ${_N}) is available; please update with:"
pr_error "ftp -Vo $(readlink -f $0) ${OPENUP_URL}"
pr_error "Exiting"
exit 1
fi
}