From eeee076ccafe4a438026e8898e2f663c75b41c07 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 4 Sep 2013 15:00:05 +0200 Subject: [PATCH] Simplify the update check. --- openup | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/openup b/openup index 4495198..cb43ccd 100755 --- a/openup +++ b/openup @@ -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 }