From ead6e9672122c6599c2d34c459eac54d8b78b3d5 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Fri, 3 Oct 2014 16:25:13 +0000 Subject: [PATCH] Use -- to prevent potential issues with funny file names --- bin/_blackbox_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index 044bbcd..ccd5741 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -211,7 +211,7 @@ function shred_file() { OPT=-f fi - $CMD $OPT "$name" + $CMD $OPT -- "$name" } function md5sum_file() { @@ -328,7 +328,7 @@ function vcs_remove() { } # Mercurial function vcs_remove_hg() { - hg rm -A """$@""" + hg rm -A -- """$@""" } # Git function vcs_remove_git() {