forked from mirrors/openup
Make openup -c mutually exclusive with other options.
This commit is contained in:
parent
9365aec703
commit
1433ebcc1c
1 changed files with 8 additions and 3 deletions
9
openup
9
openup
|
|
@ -37,13 +37,14 @@ _OPENUP_MINREL=53
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo
|
echo
|
||||||
echo "Usage: ${0##*/} [-SUn]" >&2
|
echo "Usage: ${0##*/} [-SUn]|[-c]" >&2
|
||||||
echo
|
echo
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -S do not check for package signatures"
|
echo " -S do not check for package signatures"
|
||||||
echo " -U do not check for openup update"
|
echo " -U do not check for openup update"
|
||||||
echo " -c check/cron mode, other options are ignored"
|
|
||||||
echo " -n dry-run mode, no modification is done"
|
echo " -n dry-run mode, no modification is done"
|
||||||
|
echo
|
||||||
|
echo " -c check/cron mode, mutually exclusive with other options"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -214,8 +215,12 @@ if [ -z "${checkmode}" ]; then
|
||||||
[[ -z $nosig ]] && get_cert
|
[[ -z $nosig ]] && get_cert
|
||||||
update_binpatches
|
update_binpatches
|
||||||
update_pkg
|
update_pkg
|
||||||
|
else
|
||||||
|
if [ "${nosig}" -o "${noselfupdate}" -o "${dryrun}" ]; then
|
||||||
|
usage
|
||||||
else
|
else
|
||||||
check_vuxml
|
check_vuxml
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f ${_TMPDIR}/openup-*
|
rm -f ${_TMPDIR}/openup-*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue