mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
* 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) {
|
||||
print "deleting old $oldlink\n";
|
||||
unlink $tmplink || print "cannot delete $tmplink";
|
||||
unlink "$tmplink.hash" || print "cannot delete $tmplink.hash";
|
||||
unlink($oldlink) == 1 || print "cannot delete $oldlink\n";
|
||||
unlink("$oldlink.hash") == 1 || print "cannot delete $oldlink.hash\n";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue