Commit 3389c437 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎 Committed by Michal Hrusecky

Make sure error code is propagated

parent 6b2a1ad2
......@@ -56,6 +56,7 @@ ROOT_LABEL="$(btrfs fi label "$ROOT_DEV")"
die() {
echo "$@" >&2
ERR="${ERR:-1}"
exit 1
}
......@@ -126,10 +127,9 @@ show_help() {
}
die_helping() {
echo "$@" >&2
echo
show_help
exit 1
die "$@" "
`show_help`"
}
mount_root() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment