summaryrefslogtreecommitdiff
path: root/fix-stm32cubemx-files
diff options
context:
space:
mode:
Diffstat (limited to 'fix-stm32cubemx-files')
-rwxr-xr-xfix-stm32cubemx-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/fix-stm32cubemx-files b/fix-stm32cubemx-files
index 141d4a1..da25c95 100755
--- a/fix-stm32cubemx-files
+++ b/fix-stm32cubemx-files
@@ -2,7 +2,7 @@
find stm32cubemx -type f |while read file
do
- cat $file | dos2unix | sed 's, *$,,g' > $file.tmp
+ cat $file | dos2unix | sed -e 's,[\t ]*$,,g' > $file.tmp
cnt=$(diff $file.tmp $file | wc -l)
if [[ $cnt -gt 0 ]]