20 lines
450 B
Bash
Executable file
20 lines
450 B
Bash
Executable file
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p git fd ripgrep
|
|
# shellcheck disable=SC1008
|
|
|
|
if git remote -v | rg -q nedeco; then
|
|
nix path-info -r "$(fd '^flake-profile-[a-z0-9]+$' ./.direnv/)" | while read -r dir; do
|
|
echo "Uploading $dir ..."
|
|
|
|
if attic push nedeco:devshells "$dir"; then
|
|
continue
|
|
else
|
|
echo "Ignoring error ..."
|
|
fi
|
|
done
|
|
else
|
|
echo "Doesn't look like a work repository"
|
|
exit 1
|
|
fi
|
|
|
|
# vim: set ft=sh:
|