From 25a035f92c3a1a6f05386f1d6742738679ad0bc5 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 8 Sep 2016 13:12:12 +0200 Subject: [PATCH] test: attempt to fix sed on travis License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0021-config.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sharness/t0021-config.sh b/test/sharness/t0021-config.sh index 2222e9f1d47..fb7eabe1f04 100755 --- a/test/sharness/t0021-config.sh +++ b/test/sharness/t0021-config.sh @@ -74,8 +74,8 @@ test_config_cmd() { test_expect_success "setup for config replace test" ' cp "$IPFS_PATH/config" newconfig.json && - sed -i -e /PrivKey/d -e s/10GB/11GB/ newconfig.json && - sed -i '"'"'/PeerID/ { s/,$// } '"'"' newconfig.json + sed -e /PrivKey/d -e s/10GB/11GB/ -i newconfig.json && + sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i newconfig.json ' test_expect_success "run 'ipfs config replace'" ' @@ -84,7 +84,7 @@ test_config_cmd() { test_expect_success "check resulting config after 'ipfs config replace'" ' sed -e /PrivKey/d "$IPFS_PATH/config" > replconfig.json && - sed -i -e'"'"'/PeerID/ { s/,$// } '"'"' replconfig.json && + sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i replconfig.json && test_cmp replconfig.json newconfig.json '