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
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue