Browse Source

codec: prebuild.sh: use explicit -i and -e parameters to sed, so OS X doesn't barf

Ugorji Nwoke 8 years ago
parent
commit
40b14ef0ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      codec/prebuild.sh

+ 2 - 2
codec/prebuild.sh

@@ -155,8 +155,8 @@ _codegenerators() {
             # remove (M|Unm)arshalJSON implementations, so they don't conflict with encoding/json bench \
             # remove (M|Unm)arshalJSON implementations, so they don't conflict with encoding/json bench \
             if [[ $zexternal == "1" ]]
             if [[ $zexternal == "1" ]]
             then
             then
-                sed -i 's+ MarshalJSON(+ _MarshalJSON(+g' values_ffjson${zsfx} && \
-                    sed -i 's+ UnmarshalJSON(+ _UnmarshalJSON(+g' values_ffjson${zsfx}
+                sed -i '' -e 's+ MarshalJSON(+ _MarshalJSON(+g' values_ffjson${zsfx} && \
+                    sed -i '' -e 's+ UnmarshalJSON(+ _UnmarshalJSON(+g' values_ffjson${zsfx}
             fi && \
             fi && \
             echo "generators done!" && \
             echo "generators done!" && \
             true
             true