From 4a37e8366f99e42ed6875e57a6e2ad648f400a8d Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Fri, 9 Aug 2013 11:49:11 +0200 Subject: [PATCH] Add a failsafe, people are stupid. --- openup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openup b/openup index 96e5ec7..962a3b1 100755 --- a/openup +++ b/openup @@ -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() {