Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit cc25c12

Browse files
committed
Strip trailing spaces from generated files
1 parent 300103b commit cc25c12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generate_sql_file.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ then
166166
# Does essentially nothing right now, but may in future
167167
sed -e "/sql_log_bin/d" ./after_setup.sql >> $OUTPUTFILE
168168

169-
# Remove final leading spaces
169+
# Remove final leading and trailing spaces
170170
sed -i -e "s/^ *//g" $OUTPUTFILE
171+
sed -i -e "s/[ \t]*$//g" $OUTPUTFILE
171172
# Remove more than one empty line
172173
sed -i -e "/^$/N;/^\n$/D" $OUTPUTFILE
173174

0 commit comments

Comments
 (0)