Use -- to prevent potential issues with funny file names

This commit is contained in:
tlimoncelli@stackexchange.com
2014-10-03 16:25:13 +00:00
parent cd2a661837
commit ead6e96721

View File

@@ -211,7 +211,7 @@ function shred_file() {
OPT=-f OPT=-f
fi fi
$CMD $OPT "$name" $CMD $OPT -- "$name"
} }
function md5sum_file() { function md5sum_file() {
@@ -328,7 +328,7 @@ function vcs_remove() {
} }
# Mercurial # Mercurial
function vcs_remove_hg() { function vcs_remove_hg() {
hg rm -A """$@""" hg rm -A -- """$@"""
} }
# Git # Git
function vcs_remove_git() { function vcs_remove_git() {