summaryrefslogtreecommitdiff
path: root/src/repo-diff
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo-diff')
-rwxr-xr-xsrc/repo-diff4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repo-diff b/src/repo-diff
index df5e49b..76e2d87 100755
--- a/src/repo-diff
+++ b/src/repo-diff
@@ -51,7 +51,7 @@ g() {
main() {
if test $# -eq 0; then
usage
- return 0
+ exit $EXIT_SUCCESS
fi
local tmpdir; tmpdir="$(mktemp -d -t "${0##*/}.XXXXXXXXXX")"
@@ -61,7 +61,7 @@ main() {
for i in $1 $2; do
n=$(n "$i")
- test -z "$n" && exit 1
+ [[ -n "$n" ]] || exit $EXIT_FAILURE
wget -O "$n" -nv "$(g "$i")"
b "$n" > "${n}.orig"