guix-install.sh: Fix chk_require exiting without warning.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Fri, 18 May 2018 14:51:29 +0000 (10:51 -0400)
committerLudovic Courtès <ludo@gnu.org>
Sat, 19 May 2018 20:47:07 +0000 (22:47 +0200)
commit593fe736674fadedd961c499e5758fa9c96a57aa
treed96befdb44ed7e91c4fabee2bd5b15f63c9e83ba
parent428adbc2c498252b1120da27944edc6558c04d06
guix-install.sh: Fix chk_require exiting without warning.

* etc/guix-install.sh (chk_require): Because of the set -e option, Bash was
exiting when the command `command -v "$c" &>/dev/null' was running on its
own. Instead, we now test the command and accumulate warning messages in a
single statement by chaining the command with a logical OR.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
etc/guix-install.sh