diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-04-25 15:20:05 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-04-25 15:20:05 +0000 |
commit | d6d930a975cf0bfacb8a3117752452b89921b6ee (patch) | |
tree | 39c92c90730285fc7dafae7f4d2eff3c55b6be12 | |
parent | fcc5ae151bb78006e7acc5ab8bf6b54692281777 (diff) |
* Bug fix: deleting the old links didn't work properly.
-rwxr-xr-x | scripts/nix-switch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-switch b/scripts/nix-switch index 8dea38564..570f7e9e9 100755 --- a/scripts/nix-switch +++ b/scripts/nix-switch @@ -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"; } |