mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Make Nomulus compile on macOS (#1421)
BSD sed requires a parameter to -i to indicate the backup suffix. By adding a blank suffix the sed command works on both Linux and macOS. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1421) <!-- Reviewable:end -->
This commit is contained in:
parent
f3feb18a6d
commit
3e17788fbd
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ task soyToJava {
|
|||
|
||||
outputs.each { file ->
|
||||
exec {
|
||||
commandLine 'sed', '-i', 's/@link/LINK/g', file.getCanonicalPath()
|
||||
commandLine 'sed', '-i""', '-e', 's/@link/LINK/g', file.getCanonicalPath()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue