diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-27 11:58:11 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-06-28 18:23:25 +0200 |
commit | 797dde886edfbd1e6bddeecb7d3ad87fdca97ab6 (patch) | |
tree | c70baadbf6f7481b4c8ec359e4538d01412b0761 /lbu.in | |
parent | 8e83cad94a75c5915e26901011940ab1feeb1ef6 (diff) | |
download | alpine-conf-797dde886edfbd1e6bddeecb7d3ad87fdca97ab6.zip |
lbu: add test for lbu commit usage
Diffstat (limited to 'lbu.in')
-rw-r--r-- | lbu.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -418,7 +418,7 @@ usage_commit() { The environment variables can also be set in $LBU_CONF __EOF__ - exit 1 + exit $1 } cmd_commit() { @@ -434,11 +434,11 @@ cmd_commit() { if [ -z "$mnt" ]; then # find what media to use media="${1:-$LBU_MEDIA}" - [ -z "$media" ] && usage_commit + [ -z "$media" ] && usage_commit "1" >&2 - # mount media unles its already mounted + # mount media unless its already mounted mnt=/media/$media - [ -d "$mnt" ] || usage + [ -d "$mnt" ] || usage "1" >&2 mount_once_rw "$mnt" || die "failed to mount $mnt" fi |