fix test-captplanet.sh script on MacOS/BSD (#575)

only GNU sed understands -i with no argument.
This commit is contained in:
paul cannon 2018-11-06 06:34:22 -06:00 committed by Egon Elbre
parent eb5e46e336
commit 7ba2fba03b

View File

@ -3,7 +3,7 @@ set -ueo pipefail
go install -v storj.io/storj/cmd/captplanet
captplanet setup --overwrite
sed -i 's/interval:.*/interval: 3s/g' $HOME/.storj/capt/config.yaml
sed -i~ 's/interval:.*/interval: 3s/g' $HOME/.storj/capt/config.yaml
# run captplanet for 5 seconds to reproduce kademlia problems. See V3-526
captplanet run &
@ -76,7 +76,7 @@ fi
kill -9 $CAPT_PID
captplanet setup --listen-host ::1 --overwrite
sed -i 's/interval:.*/interval: 3s/g' $HOME/.storj/capt/config.yaml
sed -i~ 's/interval:.*/interval: 3s/g' $HOME/.storj/capt/config.yaml
captplanet run &
CAPT_PID=$!