Commit 7c8c2938 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix; remove old backups.

parent 0ef03573
......@@ -322,6 +322,8 @@ foreach my $imageid (keys(%{ $xmlparse->{'image'} })) {
# So move it into place.
#
print "Moving new image into place\n";
unlink("${imagefilename}.old")
if (-e "${imagefilename}.old");
rename("${imagefilename}", "${imagefilename}.old")
if (-e "${imagefilename}");
rename("$tmpfilename", "${imagefilename}") or
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment