Files
resy/ci/run-rustfmt.sh
2017-03-30 21:55:00 +02:00

14 lines
217 B
Bash
Executable File

#!/usr/bin/env bash
ERROR=0
while IFS= read -r -d '' f; do
echo "${f}"
if [ "$(rustfmt --write-mode=diff "$f")" != $'' ] ; then
ERROR=1
fi
done < <(find . -type f -name '*.rs' -print0)
exit ${ERROR}