* Bug fix: deleting the old links didn't work properly.
This commit is contained in:
parent
fcc5ae151b
commit
d6d930a975
1 changed files with 2 additions and 2 deletions
|
@ -61,6 +61,6 @@ rename($tmplink, $current) or die "cannot rename $tmplink";
|
||||||
|
|
||||||
if (!$keep && defined $oldlink) {
|
if (!$keep && defined $oldlink) {
|
||||||
print "deleting old $oldlink\n";
|
print "deleting old $oldlink\n";
|
||||||
unlink $tmplink || print "cannot delete $tmplink";
|
unlink($oldlink) == 1 || print "cannot delete $oldlink\n";
|
||||||
unlink "$tmplink.hash" || print "cannot delete $tmplink.hash";
|
unlink("$oldlink.hash") == 1 || print "cannot delete $oldlink.hash\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue