summaryrefslogtreecommitdiff
path: root/mv-if-diff
diff options
context:
space:
mode:
authorRobin Barker <RMBarker@cpan.org>1998-03-27 18:06:11 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-04-02 16:07:44 +0000
commit23b65447ca7ec678d8e69f62797a8222e4e7e861 (patch)
treee1184bd7102017c1584dcf40a7ea66a6177a3f66 /mv-if-diff
parentec12f1140dd78d67c95825bf881ff58a52e9d030 (diff)
downloadperl-23b65447ca7ec678d8e69f62797a8222e4e7e861.tar.gz
mv-if-diff
p4raw-id: //depot/perl@856
Diffstat (limited to 'mv-if-diff')
-rw-r--r--mv-if-diff2
1 files changed, 1 insertions, 1 deletions
diff --git a/mv-if-diff b/mv-if-diff
index 1112a10dd3..ada6040c07 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