forked from lda/telodendria
Remove backup file if indent was successful.
This commit is contained in:
parent
ace2682dec
commit
d9d1713f54
1 changed files with 3 additions and 1 deletions
4
make.sh
4
make.sh
|
@ -76,7 +76,9 @@ recipe_clean() {
|
|||
recipe_format() {
|
||||
find src -name '*.c' -or -name '*.h' | while IFS= read -r src; do
|
||||
echo "indent $src"
|
||||
indent "$src"
|
||||
if indent "$src"; then
|
||||
rm $(basename "$src").BAK
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue