diff --git a/set_formatting_off.sh b/set_formatting_off.sh index 2516dded1..c1e265525 100755 --- a/set_formatting_off.sh +++ b/set_formatting_off.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash -sed -i 's/// formatter_plugin_end -->/g' pom.xml +if [[ "$OSTYPE" == "darwin"* ]]; then + backup = '.back' +fi + +sed -i $backup 's/// formatter_plugin_end -->/g' pom.xml \ No newline at end of file