bin/repair: add script to fix bad paths
This commit is contained in:
parent
22190b25e3
commit
6150b45593
8
bin/repair
Executable file
8
bin/repair
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
while nix flake check --no-build |& grep "is not valid" >/tmp/invalid; do
|
||||
path=$(cat /tmp/invalid | awk -F\' '{print $2}')
|
||||
echo "Repairing $path"
|
||||
sudo nix-store --repair-path $path >/dev/null
|
||||
done
|
Loading…
Reference in New Issue
Block a user