summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-06 23:50:37 +0200
committerDan McGee <dan@archlinux.org>2012-04-07 17:31:10 +0200
commit297916e6a2ad91bbd4cbd0173cac79937b93a393 (patch)
treef7c7cee3bda5b6985884d33b61c99ae18a9c381a
parenta8f03d07c7eaae02a55065a4a2f098ef6d8b5bff (diff)
downloadpacman-297916e6a2ad91bbd4cbd0173cac79937b93a393.tar.gz
pacman-297916e6a2ad91bbd4cbd0173cac79937b93a393.tar.xz
pkgdelta: exit 1 upon error
This has been 0 since 9fa18d9a4b4ce5217842c71d8a45676e3fb9d3f4, but it doesn't makes sense because we are raising an error. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--scripts/pkgdelta.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in
index e8e54b8e..5fcc5be4 100644
--- a/scripts/pkgdelta.sh.in
+++ b/scripts/pkgdelta.sh.in
@@ -136,12 +136,12 @@ fi
if [[ ! -f $1 ]]; then
error "$(gettext "File '%s' does not exist")" "$1"
- exit 0
+ exit 1
fi
if [[ ! -f $2 ]]; then
error "$(gettext "File '%s' does not exist")" "$2"
- exit 0
+ exit 1
fi
if ! type xdelta3 &>/dev/null; then