summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-12-05 01:18:36 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-12-05 01:18:36 -0500
commit20fa1c5e300c7e0435b368a91cdcda85e99e5fc9 (patch)
tree16b0b610a26832dcb5268480f5e2fd226f4c7071
parent666ab10eb40ad3f835663cc4eec085788e22a5d8 (diff)
maildups: add -- to the rm trap
-rw-r--r--maildups.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/maildups.sh b/maildups.sh
index 9de7625..2534ff9 100644
--- a/maildups.sh
+++ b/maildups.sh
@@ -4,7 +4,7 @@
maildir=$1
msgid_file="$(mktemp --tmpdir "${0##*/}.XXXXXXXXXX")"
-trap "rm -f $(printf '%q' "$msgid_file")" EXIT
+trap "rm -f -- $(printf '%q' "$msgid_file")" EXIT
echo -n 'Generating Message-ID table... '
grep -rH -m1 '^[Mm]essage-[Ii][Dd]:' "$maildir"| \