guix-install.sh: Directly exit in case of errors in chk_require.
* etc/guix-install.sh (chk_require): Directly exit in case of errors in chk_require, instead of relying on 'set -e'.
This commit is contained in:
parent
1febafb4af
commit
7ce9b7e706
|
@ -121,9 +121,7 @@ chk_require()
|
||||||
command -v "$c" &>/dev/null || warn+=("$c")
|
command -v "$c" &>/dev/null || warn+=("$c")
|
||||||
done
|
done
|
||||||
|
|
||||||
[ "${#warn}" -ne 0 ] &&
|
[ "${#warn}" -ne 0 ] && die "Missing commands: ${warn[*]}."
|
||||||
{ _err "${ERR}Missing commands: ${warn[*]}.";
|
|
||||||
return 1; }
|
|
||||||
|
|
||||||
_msg "${PAS}verification of required commands completed"
|
_msg "${PAS}verification of required commands completed"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue