File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,17 @@ test_config_cmd() {
74
74
75
75
test_expect_success " setup for config replace test" '
76
76
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
79
79
'
80
80
81
81
test_expect_success " run 'ipfs config replace'" '
82
82
ipfs config replace - < newconfig.json
83
83
'
84
84
85
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 &&
86
+ sed /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
87
+ sed ' " '" ' /PeerID/ { s/,$// } ' " '" ' -i replconfig.json &&
88
88
test_cmp replconfig.json newconfig.json
89
89
'
90
90
You can’t perform that action at this time.
0 commit comments