diff options
author | Vincent Legoll <vincent.legoll@gmail.com> | 2020-05-17 19:17:00 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-05-23 15:37:58 +0200 |
commit | dc1aede30a63d60708ca98e92724dc14a262b0ec (patch) | |
tree | 35e0e485e36b1185395e772f9758ac5da1a9d780 /etc | |
parent | 39939e30cf77a3336a938f0d6df6a95a07cf9ebd (diff) |
guix-install.sh: Fix ‘systemctl not found’ error message at probe.
* etc/guix-install.sh (chk_init_sys): Redirect systemctl errors to
/dev/null.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/guix-install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 4d457e7f2d..bf15aede21 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -142,7 +142,7 @@ chk_init_sys() _msg "${INF}init system is: upstart" INIT_SYS="upstart" return 0 - elif [[ $(systemctl) =~ -\.mount ]]; then + elif [[ $(systemctl 2>/dev/null) =~ -\.mount ]]; then _msg "${INF}init system is: systemd" INIT_SYS="systemd" return 0 |