Automatic add

This commit is contained in:
Timo Schmidt 2023-03-28 15:25:11 +02:00
parent b69b5126d8
commit d3e7404e5b
1 changed files with 1 additions and 1 deletions

View File

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