gitlab-ci: use xargs when running exiftool

This should handle long argument lists better.
This commit is contained in:
Hans-Christoph Steiner 2018-08-29 22:48:35 +02:00
parent f4eb681dee
commit c24ce3007b

View file

@ -33,7 +33,7 @@ lint:
}
- apt-get -qy update
- apt-get -qy install --no-install-recommends exiftool
- exiftool -all= `find metadata/ -name '*.jp*g' -o -name '*.png'`
- find metadata/ -name '*.jp*g' -o -name '*.png' | xargs exiftool -all=
- echo "these images have EXIF that must be stripped:"
- git --no-pager diff --stat
- git --no-pager diff --name-only --exit-code || export EXITVALUE=1