scripts/pkgdelta: exit properly on missing args

Removes usage of 'nounset' which, when combined with 'errexit' can cause
undesirable early exits.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
Dave Reisner 2011-07-28 13:08:37 -04:00
parent e99b6a131e
commit e42d97b737

View file

@ -20,7 +20,6 @@
# #
# bash options # bash options
set -o nounset
set -o errexit set -o errexit
# gettext initialization # gettext initialization
@ -130,7 +129,7 @@ esac
if (( $# != 2 )); then if (( $# != 2 )); then
usage usage
exit 0 exit 1
fi fi
if [[ ! -f $1 ]]; then if [[ ! -f $1 ]]; then