pg83 commited on
Commit
46b4489
·
1 Parent(s): ce86a3a
Files changed (1) hide show
  1. update.sh +2 -2
update.sh CHANGED
@@ -3,9 +3,9 @@
3
  set -xue
4
 
5
  minio-client ls minio/cas | grep STA | awk '{print $6}' | sort | grep -v '^$' > 1
6
- ls cas/ | sort > 2
7
  diff 2 1 | grep '^+' | grep -v ' ' | tr -d '+' | while read l; do
8
  minio-client get minio/cas/${l} _
9
- mv _ cas/${l}
10
  done
11
  rm 1 2
 
3
  set -xue
4
 
5
  minio-client ls minio/cas | grep STA | awk '{print $6}' | sort | grep -v '^$' > 1
6
+ find cas/ -type f | sed -e 's|.*/||' | grep -v gitattributes | sort > 2
7
  diff 2 1 | grep '^+' | grep -v ' ' | tr -d '+' | while read l; do
8
  minio-client get minio/cas/${l} _
9
+ mv _ cas/$(echo ${l} | cut -c1-3)/${l}
10
  done
11
  rm 1 2