more fixes for standard sed
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Sep 28, 2016 at 16:22 UTC
80a776286c25ed7cbeb2c9070c2d84f2d28584f7
1 file changed
+2
-2
test/sharness/t0021-config.sh
+2
-2
@@ -75,7 +75,7 @@ test_config_cmd() {
75
test_expect_success "setup for config replace test" '
76
cp "$IPFS_PATH/config" newconfig.json &&
77
sed -i"~" -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&
78
- sed -i"~" -e '"'"'/PeerID/ { s/,$// } '"'"' newconfig.json
78
+ sed -i"~" -e '"'"'/PeerID/ {'"'"' -e '"'"' s/,$// '"'"' -e '"'"' } '"'"' newconfig.json
79
'
80
81
test_expect_success "run 'ipfs config replace'" '
@@ -84,7 +84,7 @@ test_config_cmd() {
84
85
test_expect_success "check resulting config after 'ipfs config replace'" '
86
sed -e /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
87
- sed -i"~" -e '"'"'/PeerID/ { s/,$// } '"'"' replconfig.json &&
87
+ sed -i"~" -e '"'"'/PeerID/ {'"'"' -e '"'"' s/,$// '"'"' -e '"'"' } '"'"' replconfig.json &&
88
test_cmp replconfig.json newconfig.json
89
'
90