From 20fa1c5e300c7e0435b368a91cdcda85e99e5fc9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 5 Dec 2013 01:18:36 -0500 Subject: maildups: add -- to the rm trap --- maildups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"| \ -- cgit v1.2.3-2-g168b