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
|
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"
|
||||||
|
|
Loading…
Reference in New Issue