diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-28 19:08:37 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-28 19:10:10 +0200 |
commit | e42d97b7370c9e30d9ae66a33f42d27460eaf137 (patch) | |
tree | f58dae6c6d9cb504d78c879495c7b2debe354fda | |
parent | e99b6a131ea08829da26d62d498c33f3129683e3 (diff) | |
download | pacman-e42d97b7370c9e30d9ae66a33f42d27460eaf137.tar.gz pacman-e42d97b7370c9e30d9ae66a33f42d27460eaf137.tar.xz |
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>
-rw-r--r-- | scripts/pkgdelta.sh.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in index 46c6f4ff..0f3472b6 100644 --- a/scripts/pkgdelta.sh.in +++ b/scripts/pkgdelta.sh.in @@ -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 |