forked from mirrors/openup
Simplify the update check.
This commit is contained in:
parent
e30c78e50e
commit
eeee076cca
1 changed files with 5 additions and 7 deletions
12
openup
12
openup
|
|
@ -133,13 +133,11 @@ check_openupd() {
|
||||||
_N=$(eval ${_CMD}) || exit 1
|
_N=$(eval ${_CMD}) || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${_N}" -o -n "${dryrun}" ]; then
|
if [ "${_OPENUP_VERSION}" -lt "${_N}" ]; then
|
||||||
if [ "${_OPENUP_VERSION}" -lt "${_N}" ]; then
|
pr_error "New openup release (version ${_N}) is available; please update with:"
|
||||||
pr_error "New openup release (version ${_N}) is available; please update with:"
|
pr_error "ftp -Vo $(readlink -f $0) ${OPENUP_URL}"
|
||||||
pr_error "ftp -Vo $(readlink -f $0) ${OPENUP_URL}"
|
pr_error "Exiting"
|
||||||
pr_error "Exiting"
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue