Skip to content

Commit 539af92

Browse files
committed
test: attempt to fix sed on travis
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
1 parent a680b1b commit 539af92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/sharness/t0021-config.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ test_config_cmd() {
7474

7575
test_expect_success "setup for config replace test" '
7676
cp "$IPFS_PATH/config" newconfig.json &&
77-
sed -i -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&
78-
sed -i '"'"'/PeerID/ { s/,$// } '"'"' newconfig.json
77+
sed /PrivKey/d -e s/10GB/11GB/ -i newconfig.json &&
78+
sed '"'"'/PeerID/ { s/,$// } '"'"' -i newconfig.json
7979
'
8080

8181
test_expect_success "run 'ipfs config replace'" '
8282
ipfs config replace - < newconfig.json
8383
'
8484

8585
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 &&
86+
sed /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
87+
sed '"'"'/PeerID/ { s/,$// } '"'"' -i replconfig.json &&
8888
test_cmp replconfig.json newconfig.json
8989
'
9090

0 commit comments

Comments
 (0)