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:
Maxim Cournoyer 2022-12-14 10:35:54 -05:00
parent 1febafb4af
commit 7ce9b7e706
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 2 additions and 4 deletions

View File

@ -121,10 +121,8 @@ chk_require()
command -v "$c" &>/dev/null || warn+=("$c")
done
[ "${#warn}" -ne 0 ] &&
{ _err "${ERR}Missing commands: ${warn[*]}.";
return 1; }
[ "${#warn}" -ne 0 ] && die "Missing commands: ${warn[*]}."
_msg "${PAS}verification of required commands completed"
}