]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: SC2046: Quote this to prevent word splitting
authorMasahiro Matsuya <mmatsuya@redhat.com>
Tue, 29 Jun 2021 09:09:57 +0000 (18:09 +0900)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 29 Jun 2021 22:03:38 +0000 (22:03 +0000)
modules.d/45url-lib/url-lib.sh

index c952aec68c8002aff6ed325be4cf2c637d27f883..b68f72b04a99e84e7eaaafe5875a2c45de2eb226 100755 (executable)
@@ -159,7 +159,7 @@ nfs_fetch_url() {
         mntdir="$(mkuniqdir /run nfs_mnt)"
         mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"
         # lazy unmount during pre-pivot hook
-        inst_hook --hook pre-pivot --name 99url-lib-umount-nfs-$(basename "$mntdir") umount -l -- "$mntdir"
+        inst_hook --hook pre-pivot --name 99url-lib-umount-nfs-"$(basename "$mntdir")" umount -l -- "$mntdir"
     fi
 
     if [ -z "$outloc" ]; then