diff --git a/test/sharness/t0021-config.sh b/test/sharness/t0021-config.sh index 8347f9135..7eef9cd4a 100755 --- a/test/sharness/t0021-config.sh +++ b/test/sharness/t0021-config.sh @@ -75,7 +75,7 @@ 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"~" -e '"'"'/PeerID/ { s/,$// } '"'"' newconfig.json + sed -i"~" -e '"'"'/PeerID/ {'"'"' -e '"'"' s/,$// '"'"' -e '"'"' } '"'"' 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 -i"~" -e '"'"'/PeerID/ {'"'"' -e '"'"' s/,$// '"'"' -e '"'"' } '"'"' replconfig.json && test_cmp replconfig.json newconfig.json '