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:
parent
e99b6a131e
commit
e42d97b737
@ -20,7 +20,6 @@
|
||||
#
|
||||
|
||||
# bash options
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
# gettext initialization
|
||||
@ -130,7 +129,7 @@ esac
|
||||
|
||||
if (( $# != 2 )); then
|
||||
usage
|
||||
exit 0
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -f $1 ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user