[asperl] fixups to make it build and pass tests under both compilers
[p5sagit/p5-mst-13.2.git] / mv-if-diff
index 1112a10..ada6040 100644 (file)
@@ -8,7 +8,7 @@ if test $# -lt 2 ; then
 fi
 if cmp $1 $2 >/dev/null 2>&1; then
        echo "File $2 not changed."
-       rm -f tmp
+       rm -f $1
 else
        mv $1 $2
 fi