aboutsummaryrefslogtreecommitdiff
path: root/util/trim-whitespace.sh
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2025-04-05 13:29:50 +0300
committerMikhail Romanko <me@blankhex.com>2025-04-05 13:55:06 +0300
commit0683389d7bc53520b3ff468da5c59f2cc5f07995 (patch)
tree53e41d34b0f38085b7ab0dc09e0ed95e91643c19 /util/trim-whitespace.sh
parent83a4e723bfc4c8d496ee138b719de1f321666f46 (diff)
downloadbhlib-0683389d7bc53520b3ff468da5c59f2cc5f07995.tar.gz
Improved build system and POSIX compatibility
Fixed few bugs related to build system and POSIX compatabilty.
Diffstat (limited to 'util/trim-whitespace.sh')
-rwxr-xr-xutil/trim-whitespace.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/trim-whitespace.sh b/util/trim-whitespace.sh
index 34a9c58..f661aa3 100755
--- a/util/trim-whitespace.sh
+++ b/util/trim-whitespace.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i "s/[ \t]*$//" {} \; \ No newline at end of file
+find . \( -iname "*.h" -o -iname "*.c" \) -exec sed -i .bak "s/[ ]*$//" {} \;
+find . -iname "*.bak" -exec rm {} \;