summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-12 12:27:51 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-12 12:27:51 +0200
commit01599a8de056f9a90ebd48f673705e8207a59e4c (patch)
tree925a1b2907dc9f3b65ee8effca32252656b90f70 /lbu.in
parent0cd91867553711635d81f72e5e600445efec0461 (diff)
downloadalpine-conf-01599a8de056f9a90ebd48f673705e8207a59e4c.zip
lbu: fix lbu revert usage
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index 8272244..d8dc734 100644
--- a/lbu.in
+++ b/lbu.in
@@ -584,11 +584,12 @@ usage_revert() {
The revision should be one of the files listed by 'lbu list-backup'.
__EOF__
+ exit $1
}
cmd_revert() {
local media=${2:-"$LBU_MEDIA"}
- [ -z "$media" ] && usage_revert
+ [ -z "$media" ] && usage_revert "1" >&2
local mnt="/media/$media"
local revertto="$mnt/$1"
local current="$mnt/$(hostname).apkovl.tar.gz"