]> diplodocus.org Git - nmh/blobdiff - test/post/test-post-common.sh
Disable setgid of inc (SETGID_MAIL=1) when running distcheck.
[nmh] / test / post / test-post-common.sh
index e0eaa4ac0e1c634f9f747ff82efaea4b1b597e12..7bc67e326310d9049623956bafced862a63ff210 100755 (executable)
@@ -37,9 +37,8 @@ test_post ()
     # compare it against our "correct" output.
     #
 
-    sed -i.bak -e 's/^Date:.*/Date:/' "$1"
+    sed -e 's/^Date:.*/Date:/' "$1" > "$1".nodate
+    rm -f "$1"
 
-    rm -f "${1}.bak"
-
-    check "$1" "$2"
+    check "$1".nodate "$2"
 }