Skip to content

Commit

Permalink
codec: prebuild.sh: use explicit -i and -e parameters to sed, so OS X…
Browse files Browse the repository at this point in the history
… doesn't barf
  • Loading branch information
ugorji committed Aug 26, 2017
1 parent 5038cc5 commit 40b14ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codec/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ _codegenerators() {
# remove (M|Unm)arshalJSON implementations, so they don't conflict with encoding/json bench \
if [[ $zexternal == "1" ]]
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 && \
echo "generators done!" && \
true
Expand Down

0 comments on commit 40b14ef

Please sign in to comment.