diff options
-rwxr-xr-x | etc/guix-install.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 297a726ad6..8887204df4 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -174,7 +174,12 @@ chk_require() add_init_sys_require() { # Add the elements of FOO_INIT_SYS to REQUIRE - local init_require="${INIT_SYS}_REQUIRE[@]" + + # Convert the init system command name captured in INIT_SYS in + # chk_init_sys to uppercase, with hyphens replaced by underscores. + local init_require=${INIT_SYS^^}_REQUIRE[@] + init_require=${init_require//-/_} + if [[ -n "$init_require" ]]; then # Have to add piecemeal because ${!foo[@]} performs direct array key # expansion, not indirect plain array expansion. |