From 40b14ef0ea24c9af9f94bc8d5153df2c2db02331 Mon Sep 17 00:00:00 2001 From: Ugorji Nwoke Date: Sat, 26 Aug 2017 08:58:15 -0700 Subject: [PATCH] codec: prebuild.sh: use explicit -i and -e parameters to sed, so OS X doesn't barf --- codec/prebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/prebuild.sh b/codec/prebuild.sh index 422c1a73..04c61e48 100755 --- a/codec/prebuild.sh +++ b/codec/prebuild.sh @@ -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