1
0
Fork 0
dotfiles/home/programs/scripts/attic-nedeco-devshells-cache
2023-07-29 00:58:25 +02:00

13 lines
331 B
Text
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p fd jq
# shellcheck disable=SC1008
jq -cr ".variables.pkgsBuildHost.value[]" "$(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