aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Matsuya <mmatsuya@redhat.com>2021-06-14 09:04:03 +0900
committerJóhann B. Guðmundsson <johannbg@gmail.com>2021-06-29 22:03:38 +0000
commitacb18869e98687a3f8c172d7e7befaa5326cf67a (patch)
tree1bf5c6379ec4273468472dcad432a322037b1f8d
parent2f091b17075f81ff490b05d3d566d736fc32f0be (diff)
downloaddracut-acb18869e98687a3f8c172d7e7befaa5326cf67a.tar.gz
fix: SC2086: Double quote to prevent globbing and word splitting
-rwxr-xr-xmodules.d/45url-lib/url-lib.sh2
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