diff options
-rw-r--r-- | lbu.in | 4 | ||||
-rwxr-xr-x | tests/lbu_test | 7 |
2 files changed, 8 insertions, 3 deletions
@@ -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" diff --git a/tests/lbu_test b/tests/lbu_test index 08043fb..e7c1128 100755 --- a/tests/lbu_test +++ b/tests/lbu_test @@ -10,7 +10,8 @@ init_tests \ lbu_ci_usage \ lbu_exclude_usage \ lbu_ex_usage \ - lbu_delete_usage + lbu_delete_usage \ + lbu_diff_usage lbu_usage_body() { test_usage lbu @@ -60,3 +61,7 @@ lbu_delete_usage_body() { lbu delete -h } +lbu_diff_usage_body() { + test_usage "lbu diff" +} + |