summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbu.in b/lbu.in
index 9155892..bff12a2 100644
--- a/lbu.in
+++ b/lbu.in
@@ -673,13 +673,13 @@ usage_diff() {
usage: $PROGRAM diff [<media>]
__EOF__
- exit 1
+ exit $1
}
cmd_diff() {
local diff_opts=
LBU_MEDIA=${1:-"$LBU_MEDIA"}
- [ -z "$LBU_MEDIA" ] && [ -z "$LBU_BACKUPDIR" ] && usage_diff
+ [ -z "$LBU_MEDIA" ] && [ -z "$LBU_BACKUPDIR" ] && usage_diff "1" >&2
local tmp
init_tmpdir tmp
mkdir -p "$tmp/a" "$tmp/b"