Explorar el Código

nixpkgs/elvish: cleanup extra links in direlv

Thomas Dy hace 2 años
padre
commit
921605a1c3
Se han modificado 1 ficheros con 2 adiciones y 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
     }