I guess the -i option to sed works differently on Linux and MacOS
[mmh] / test / post / test-post-common.sh
index 7698b81..c35a5a2 100755 (executable)
@@ -37,7 +37,9 @@ test_post ()
     # compare it against our "correct" output.
     #
 
-    sed -i "" -e 's/^Date:.*/Date:/' "$1"
+    sed -i.bak -e 's/^Date:.*/Date:/' "$1"
+
+    rm -f "${1}.bak"
 
     check "$1" "$2"
 }