18 lines
266 B
Bash
Executable file
18 lines
266 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
descend() {
|
|
for f in $1/*; do
|
|
if [[ -d $f ]]; then
|
|
echo descending into $f...
|
|
descend $f
|
|
fi
|
|
done
|
|
if [[ -d $1 ]]; then
|
|
echo updating $1...
|
|
nix flake update
|
|
sleep 5 # prevent api thrashing
|
|
fi
|
|
}
|
|
|
|
descend flakes
|
|
nix flake update
|