We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c95950 commit f435eecCopy full SHA for f435eec
set_formatting_off.sh
@@ -1,5 +1,9 @@
1
#!/usr/bin/env bash
2
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
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ 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
9
0 commit comments