Skip to content

Commit

Permalink
check for subdirs before deleting model zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgtied committed Mar 21, 2023
1 parent 4e85da0 commit d20a500
Show file tree
Hide file tree
Showing 9,643 changed files with 104 additions and 429,940 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ upload-models:
fi
find ${MODEL_RELEASEDIR}/ -type l | tar -cf models-links.tar -T -
-find ${MODEL_RELEASEDIR}/ -type l -delete
-if `find ${MODEL_RELEASEDIR} -mindepth 2 -type d | wc -l` -gt 0 ]; then \
-if [ `find ${MODEL_RELEASEDIR} -mindepth 2 -type d | wc -l` -gt 0 ]; then \
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; \
echo "There are sub-directories in ${MODEL_RELEASEDIR}/*/"; \
echo "Please, check carefully and cleanup the release directory"; \
Expand All @@ -520,9 +520,11 @@ upload-models:
swift list ${MODEL_CONTAINER} > index.txt
swift upload ${MODEL_CONTAINER} index.txt
rm -f index.txt
for m in ${RELEASED_MODELS}; do \
rm -f ${MODEL_RELEASEDIR}/$$m/*.zip; \
done
if [ `find ${MODEL_RELEASEDIR} -mindepth 2 -type d | wc -l` -eq 0 ]; then \
for m in ${RELEASED_MODELS}; do \
rm -f ${MODEL_RELEASEDIR}/$$m/*.zip; \
done \
fi



Expand Down
64 changes: 0 additions & 64 deletions models/aav-aav/opus-2020-10-04.bleu-scores.txt

This file was deleted.

50 changes: 0 additions & 50 deletions models/aav-aav/opus-2020-10-04.chrf++-scores.txt

This file was deleted.

64 changes: 0 additions & 64 deletions models/aav-aav/opus-2020-10-04.chrf-scores.txt

This file was deleted.

100 changes: 0 additions & 100 deletions models/aav-aav/opus-2020-10-04.comet-scores.txt

This file was deleted.

64 changes: 0 additions & 64 deletions models/aav-aav/opus-2020-10-04.scores.txt

This file was deleted.

Loading

0 comments on commit d20a500

Please sign in to comment.