diff options
author | Masahiro Matsuya <mmatsuya@redhat.com> | 2021-06-14 09:04:03 +0900 |
---|---|---|
committer | Jóhann B. Guðmundsson <johannbg@gmail.com> | 2021-06-29 22:03:38 +0000 |
commit | acb18869e98687a3f8c172d7e7befaa5326cf67a (patch) | |
tree | 1bf5c6379ec4273468472dcad432a322037b1f8d | |
parent | 2f091b17075f81ff490b05d3d566d736fc32f0be (diff) | |
download | dracut-acb18869e98687a3f8c172d7e7befaa5326cf67a.tar.gz |
fix: SC2086: Double quote to prevent globbing and word splitting
-rwxr-xr-x | modules.d/45url-lib/url-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh index 972596a1..c952aec6 100755 --- a/modules.d/45url-lib/url-lib.sh +++ b/modules.d/45url-lib/url-lib.sh @@ -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 |