From 80a776286c25ed7cbeb2c9070c2d84f2d28584f7 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 28 Sep 2016 16:22:32 +0200 Subject: [PATCH] more fixes for standard sed License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0021-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '