1
0
Fork 0
forked from mirrors/openup

Add a failsafe, people are stupid.

This commit is contained in:
Antoine Jacoutot 2013-08-09 11:49:11 +02:00
commit 4a37e8366f

3
openup
View file

@ -112,7 +112,7 @@ update_self() {
fi
_N=$(grep -Eo '^OPENUP_VERSION=.*' ${TMPUPD} | awk -F '=' '{ print $2 }')
[[ -n "${_N}" ]] && \
if [ -z "${DRYRUN}" -a -n "${_N}" ]; then
if [ "${OPENUP_VERSION}" -lt "${_N}" ]; then
print3 "Updating openup(8) from version ${OPENUP_VERSION} to version ${_N}"
_CMD="cat ${TMPUPD} >${MEESA}"
@ -125,6 +125,7 @@ update_self() {
eval ${_CMD}
exit $rtn
fi
fi
}
update_binpatches() {