Skip to content

Commit 25a035f

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sharness/t0021-config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ 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 -e /PrivKey/d -e s/10GB/11GB/ -i newconfig.json &&
78+
sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i newconfig.json
7979
'
8080

8181
test_expect_success "run 'ipfs config replace'" '
@@ -84,7 +84,7 @@ test_config_cmd() {
8484

8585
test_expect_success "check resulting config after 'ipfs config replace'" '
8686
sed -e /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
87-
sed -i -e'"'"'/PeerID/ { s/,$// } '"'"' replconfig.json &&
87+
sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i replconfig.json &&
8888
test_cmp replconfig.json newconfig.json
8989
'
9090

0 commit comments

Comments
 (0)