mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
guix-install.sh: Convert sysv-init to SYSV_INIT_REQUIRE to match variable name.
See <https://lists.gnu.org/archive/html/bug-guix/2024-06/msg00145.html>. Thanks to Nyi Nyi Zaw for the patch. * etc/guix-install.sh (add_init_sys_require): Adjust value of INIT_SYS so that it matches the potential extra required arguments array name. Reported-by: Nyi Nyi Zaw Reported-by: Diana Belle <garbados@gmail.com> Change-Id: Ic41de6fba7ef37dff479728aebefaa8cb148315e
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user