From f076032aecc6a6bf981c84948cdf34a8ce0ce41c Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 4 Sep 2013 16:25:52 +0200 Subject: [PATCH] Fix mutualy exclusive options parsing. --- openup | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/openup b/openup index b476db8..b27680a 100755 --- a/openup +++ b/openup @@ -215,15 +215,17 @@ done check_openupd -if [ -z "${checkmode}" ]; then +if [ -n "${nosig}" -o -n "${dryrun}" -a -n "${dryrun}" ]; then + usage +fi + +if [ "${checkmode}" ]; then + check_vuxml + +else if [ -z "${nosig}" ]; then get_cert; fi update_binpatches update_pkg -else - if [ "${nosig}" -o "${dryrun}" ]; then - usage - fi - check_vuxml fi rm -f ${_TMPDIR}/.openup-*