[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60068] [PATCH v2 3/3] guix-install.sh: Directly exit in case of err
From: |
Maxim Cournoyer |
Subject: |
[bug#60068] [PATCH v2 3/3] guix-install.sh: Directly exit in case of errors in chk_require. |
Date: |
Wed, 14 Dec 2022 15:46:40 -0500 |
* etc/guix-install.sh (chk_require): Directly exit in case of errors in
chk_require, instead of relying on 'set -e'.
---
etc/guix-install.sh | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 62d85e765a..ea10f35250 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -137,10 +137,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"
}
--
2.38.1
- [bug#60069] [PATCH 2/2] guix-install.sh: Directly exit in case of errors in chk_require., (continued)
[bug#60068] [PATCH 1/2] guix-install.sh: Add GUIX_ALLOW_OVERWRITE environment variable., Tobias Geerinckx-Rice, 2022/12/14
[bug#60068] [PATCH v2 1/3] guix-install.sh: Add missing "useradd" command., Maxim Cournoyer, 2022/12/14
[bug#60068] [PATCH v2 3/3] guix-install.sh: Directly exit in case of errors in chk_require.,
Maxim Cournoyer <=
[bug#60068] bug#60069: [PATCH 2/2] guix-install.sh: Directly exit in case of errors in chk_require., Ludovic Courtès, 2022/12/15