]> git.scottworley.com Git - annex-ec/commitdiff
Add all ec volumes at once
authorScott Worley <scottworley@scottworley.com>
Sun, 19 Apr 2026 21:34:12 +0000 (14:34 -0700)
committerScott Worley <scottworley@scottworley.com>
Sun, 19 Apr 2026 21:34:12 +0000 (14:34 -0700)
For efficiency.

annex-ec

index 9eae1255a349b1e96e607a29632808954fec6b5c..660291936563690b10e82123ccf7c78371b65c1f 100755 (executable)
--- a/annex-ec
+++ b/annex-ec
@@ -108,9 +108,9 @@ for f;do
   i=$((i+1))
 done
 
   i=$((i+1))
 done
 
+git annex add ec/"$name.vol"*
 for f in ec/"$name.vol"*;do
   target_volume="${volumes[i]}"
 for f in ec/"$name.vol"*;do
   target_volume="${volumes[i]}"
-  git annex add "$f"
   if [[ "$target_volume" != here ]];then
     git annex move --to "$target_volume" "$f"
   fi
   if [[ "$target_volume" != here ]];then
     git annex move --to "$target_volume" "$f"
   fi