diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-27 12:05:00 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-06-28 18:23:25 +0200 |
commit | d38b08640e8c063e76ae7c791579d2789473028e (patch) | |
tree | 4d5b12599c1ec7bf04720be1f42ae4eb6a22be70 /lbu.in | |
parent | 797dde886edfbd1e6bddeecb7d3ad87fdca97ab6 (diff) | |
download | alpine-conf-d38b08640e8c063e76ae7c791579d2789473028e.zip |
lbu: add tests for lbu exclude usage
Diffstat (limited to 'lbu.in')
-rw-r--r-- | lbu.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |