guix-install.sh: Please the shellcheck linter.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Tue, 4 May 2021 21:05:43 +0000 (17:05 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Wed, 5 May 2021 15:01:06 +0000 (11:01 -0400)
commite61fe664a4a3fd9ae09ff1890cc1dc3285ab3634
tree86b7bbd54e93ec5a5cdff89b32b0be4ea49bcf17
parentaf66a9510fdbe9a7cb3ad2a1acdf190553727704
guix-install.sh: Please the shellcheck linter.

* etc/guix-install.sh <FUNCNAME>: Explicitly refer to the first item of the
FUNCNAME array.
(ROOT_HOME): Replace variable by ~root directly; manually expanding it via
echo was not necessary.
(chk_gpg_keyring): Use an if branch for the exit to avoid a warning about
expression precedence.
(chk_term) <ansi_term>: Remove unused variable.
(guix_get_bin) <wget, gpg>: Test the commands directly.  Use an array for the
wget arguments, which can then be properly expanded.
(sys_create_store): Disable SC1090 for the source command, as we don't care
about following the sourced script.
<_msg>: Reuse the GUIX_PROFILE variable in the message.
(sys_create_build_user) <getent>: Test the command directly.
etc/guix-install.sh