From d3e7404e5b6cd24987654f3b10e6cb190fae3652 Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Tue, 28 Mar 2023 15:25:11 +0200 Subject: [PATCH] Automatic add --- extract_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"