diff --git a/extract_tests.sh b/extract_tests.sh index 406f1e7..f0fa7f7 100755 --- a/extract_tests.sh +++ b/extract_tests.sh @@ -36,8 +36,8 @@ for file in $(find . | grep -v .git | grep '^\./c[[:digit:]][[:digit:]].*.c$'); diff "${out_filepath}.tmp" "${out_filepath}" >/dev/null if [ ! "${?}" = "0" ]; then count="$((count + 1))" - mv "${out_filepath}.tmp" "${out_filepath}" fi + mv "${out_filepath}.tmp" "${out_filepath}" done printf '\033[32m%s\033[m\n' "Done, changed ${count} files"