Explorar o código

nixpkgs/elvish: cleanup extra links in direlv

Thomas Dy %!s(int64=2) %!d(string=hai) anos
pai
achega
921605a1c3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      .config/nixpkgs/elvish/lib/direlv.elv

+ 2 - 0
.config/nixpkgs/elvish/lib/direlv.elv

@@ -211,6 +211,8 @@ edit:add-var direlv~ {|@a|
         set args = [ "--file" "default.nix" $@args ]
       }
 
+      # remove any extra links
+      find $state-dir -name $hash'-*' -delete
       e:nix develop $@args
     }