Skip to content

Commit f435eec

Browse files
committed
. e Testing Mac more
1 parent 6c95950 commit f435eec

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

set_formatting_off.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22

3-
sed -i 's/<!-- formatter_plugin_begin -->/<!-- formatter_plugin_begin/g' pom.xml
4-
sed -i 's/<!-- formatter_plugin_end -->/ formatter_plugin_end -->/g' pom.xml
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
backup = '.back'
5+
fi
6+
7+
sed -i $backup 's/<!-- formatter_plugin_begin -->/<!-- formatter_plugin_begin/g' pom.xml
8+
sed -i $backup 's/<!-- formatter_plugin_end -->/ formatter_plugin_end -->/g' pom.xml
59

0 commit comments

Comments
 (0)