summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-27 12:05:00 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-06-28 18:23:25 +0200
commitd38b08640e8c063e76ae7c791579d2789473028e (patch)
tree4d5b12599c1ec7bf04720be1f42ae4eb6a22be70 /lbu.in
parent797dde886edfbd1e6bddeecb7d3ad87fdca97ab6 (diff)
downloadalpine-conf-d38b08640e8c063e76ae7c791579d2789473028e.zip
lbu: add tests for lbu exclude usage
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbu.in b/lbu.in
index 3a94d36..9155892 100644
--- a/lbu.in
+++ b/lbu.in
@@ -522,18 +522,18 @@ usage_exclude() {
-r Remove specified file(s) from exclude list instead of adding.
-v Verbose mode.
__EOF__
- exit 1
+ exit $1
}
cmd_exclude() {
cmd_migrate_include_exclude
if [ "$LIST" ] ; then
- [ $# -gt 0 ] && usage_exclude
+ [ $# -gt 0 ] && usage_exclude "1" >&2
show_exclude
return
fi
- [ $# -lt 1 ] && usage_exclude
+ [ $# -lt 1 ] && usage_exclude "1" >&2
if [ "$REMOVE" ] ; then
list_delete - "$@"
else