forked from mirrors/openup
Add a failsafe, people are stupid.
This commit is contained in:
parent
0b64f2e86f
commit
4a37e8366f
1 changed files with 2 additions and 1 deletions
3
openup
3
openup
|
|
@ -112,7 +112,7 @@ update_self() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_N=$(grep -Eo '^OPENUP_VERSION=.*' ${TMPUPD} | awk -F '=' '{ print $2 }')
|
_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
|
if [ "${OPENUP_VERSION}" -lt "${_N}" ]; then
|
||||||
print3 "Updating openup(8) from version ${OPENUP_VERSION} to version ${_N}"
|
print3 "Updating openup(8) from version ${OPENUP_VERSION} to version ${_N}"
|
||||||
_CMD="cat ${TMPUPD} >${MEESA}"
|
_CMD="cat ${TMPUPD} >${MEESA}"
|
||||||
|
|
@ -125,6 +125,7 @@ update_self() {
|
||||||
eval ${_CMD}
|
eval ${_CMD}
|
||||||
exit $rtn
|
exit $rtn
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
update_binpatches() {
|
update_binpatches() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue