From 95983b77b95ea592330d2456af785efe8b4c7476 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 22 Jun 2024 12:58:40 -0400 Subject: [PATCH] fix sync directories Signed-off-by: ahuston-0 --- systems/palatine-hill/attic/sync-attic.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/systems/palatine-hill/attic/sync-attic.bash b/systems/palatine-hill/attic/sync-attic.bash index 1081846..7e99877 100644 --- a/systems/palatine-hill/attic/sync-attic.bash +++ b/systems/palatine-hill/attic/sync-attic.bash @@ -1,4 +1,10 @@ #!/usr/bin/env nix #! nix shell nixpkgs#bash nixpkgs#findutils nixpkgs#attic-client --command bash -find . -regex ".*\.drv$" -exec attic push cache-nix-dot '/ZFS/ZFS-primary/hydra/{}' \; +sync_directories=( + /ZFS/ZFS-primary/hydra +) + +for dir in "${sync_directories[@]}"; do + find "$dir" -regex ".*\.drv$" -exec attic push cache-nix-dot '{}' \; +done