This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cleanup PerlIO::scalar documentation a bit.
[perl5.git] / mv-if-diff
index ada6040..4a85b98 100644 (file)
@@ -10,5 +10,6 @@ if cmp $1 $2 >/dev/null 2>&1; then
        echo "File $2 not changed."
        rm -f $1
 else
+       rm -f $2
        mv $1 $2
 fi