Skip to content

Commit

Permalink
fix: SC2086: Double quote to prevent globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatsuya authored and johannbg committed Jun 29, 2021
1 parent 2f091b1 commit acb1886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/45url-lib/url-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acb1886

Please sign in to comment.