]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Fix quoting
authorcvlc12 <cvlc12@outlook.fr>
Mon, 19 Jun 2023 19:08:21 +0000 (21:08 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 19 Jun 2023 23:51:32 +0000 (00:51 +0100)
src/kernel-install/90-loaderentry.install.in

index 800bb05d02b804755fe0e26ca4db81da32ad24f3..bc4cad9e6f61f1392b8b600c1c7746d8694f8109 100755 (executable)
@@ -117,7 +117,7 @@ chown root:root "$KERNEL_DEST" || :
 
 shift "$INITRD_OPTIONS_SHIFT"
 # All files listed as arguments, and staged files starting with "initrd" are installed as initrds.
-for initrd in "${KERNEL_INSTALL_STAGING_AREA}/microcode*" "${@}" "${KERNEL_INSTALL_STAGING_AREA}/initrd*"; do
+for initrd in "${KERNEL_INSTALL_STAGING_AREA}"/microcode* "${@}" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do
     [ -f "$initrd" ] || {
         case "$initrd" in
             "${KERNEL_INSTALL_STAGING_AREA}/initrd*" | "${KERNEL_INSTALL_STAGING_AREA}/microcode*")
@@ -156,7 +156,7 @@ mkdir -p "${LOADER_ENTRY%/*}" || {
     echo "linux      $KERNEL_ENTRY"
 
     have_initrd=
-    for initrd in "${KERNEL_INSTALL_STAGING_AREA}/microcode*" "${@}" "${KERNEL_INSTALL_STAGING_AREA}/initrd*"; do
+    for initrd in "${KERNEL_INSTALL_STAGING_AREA}"/microcode* "${@}" "${KERNEL_INSTALL_STAGING_AREA}"/initrd*; do
         [ -f "$initrd" ] || continue
         echo "initrd     $ENTRY_DIR/${initrd##*/}"
         have_initrd=yes