Skip to content

Commit

Permalink
remove dups
Browse files Browse the repository at this point in the history
  • Loading branch information
tmck-code committed Dec 4, 2024
1 parent 3996e17 commit e272c69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ RUN go run /usr/local/src/src/bin/convert/png_convert.go \
&& mv -v /tmp/cows/pokemon-gen8 /tmp/cows/gen8 \
&& mv -v /tmp/cows/pokemon-gen7x /tmp/cows/gen7x \
&& cat /tmp/original/pokesprite/data/pokemon.json | jq -c .[] > /tmp/cows/pokemon.json \
&& rm -rf /tmp/original/pokesprite
&& rm -rf /tmp/original/pokesprite \
&& find . ! -empty -type f -exec md5sum {} + | sort -r | uniq -w32 -dD > dup \
&& for i in $(cut -d' ' -f1 build/cows/dup | uniq); do grep $i dup | tail -n +2 | cut -d ' ' -f3 ; done | parallel echo rm -v

ADD . .

0 comments on commit e272c69

Please sign in to comment.