Use -- to prevent potential issues with funny file names
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user