repair: run sudo early
This commit is contained in:
parent
2bb67e3a18
commit
ae58f66bbd
@ -1,7 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
sudo date
|
||||||
while nix flake check --no-build |& grep "is not valid" >/tmp/invalid; do
|
while nix flake check --no-build |& grep "is not valid" >/tmp/invalid; do
|
||||||
path=$(cat /tmp/invalid | awk -F\' '{print $2}')
|
path=$(cat /tmp/invalid | awk -F\' '{print $2}')
|
||||||
echo "Repairing $path"
|
echo "Repairing $path"
|
||||||
sudo nix-store --repair-path $path >/dev/null
|
sudo nix-store --repair-path $path >/dev/null
|
||||||
done
|
done
|
||||||
|
date
|
||||||
|
Loading…
Reference in New Issue
Block a user