From 4e3508c8eb66b85d34add512d1170b83683df931 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Thu, 11 Sep 2014 18:39:35 +0200 Subject: [PATCH] Simplify. --- openup | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openup b/openup index 10e4abe..4f13332 100755 --- a/openup +++ b/openup @@ -260,12 +260,6 @@ while getopts 'KSc' arg; do done [ $# = $(($OPTIND-1)) ] || usage -if [ "${checkmode}" ]; then - if [ -n "${nosig}" ]; then - usage - fi -fi - if [ -f ${_PID} ]; then pr_err "openup is already running ($(cat ${_PID})):" pr_err "${_PID}" @@ -273,6 +267,7 @@ if [ -f ${_PID} ]; then fi echo $$ >${_PID} +[ -n "${checkmode}" -a -n "${nosig}" ] && usage check_openupd if [ -n "${exclude_kernel}" ]; then