Automatic add
This commit is contained in:
parent
b69b5126d8
commit
d3e7404e5b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue