From: Robin Barker Date: Fri, 27 Mar 1998 18:06:11 +0000 (+0000) Subject: mv-if-diff X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=23b65447ca7ec678d8e69f62797a8222e4e7e861;p=p5sagit%2Fp5-mst-13.2.git mv-if-diff p4raw-id: //depot/perl@856 --- diff --git a/mv-if-diff b/mv-if-diff index 1112a10..ada6040 100644 --- a/mv-if-diff +++ b/mv-if-diff @@ -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