summaryrefslogtreecommitdiff
path: root/dracut-functions.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-06-28 10:31:18 +0200
committerHarald Hoyer <harald@redhat.com>2013-06-28 10:31:18 +0200
commit32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4 (patch)
tree77496ecfc6b5a08e5b61e7a892185e319d4f7a4d /dracut-functions.sh
parent1d84d6940e5242220bc478647c56aae02c4263d3 (diff)
downloaddracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.gz
dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.tar.bz2
dracut-32bd2fbb4c8f1d3e1951d75f32c080d4b42c49a4.zip
use "rm --" to guard against filenames beginning with "-"
Diffstat (limited to 'dracut-functions.sh')
-rwxr-xr-xdracut-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh
index 7ecd5519..6b835d6b 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -1508,7 +1508,7 @@ dracut_kernel_post() {
exit 1
fi
- [[ $DRACUT_KERNEL_LAZY_HASHDIR ]] && rm -fr "$DRACUT_KERNEL_LAZY_HASHDIR"
+ [[ $DRACUT_KERNEL_LAZY_HASHDIR ]] && rm -fr -- "$DRACUT_KERNEL_LAZY_HASHDIR"
}
module_is_host_only() (