diff --git a/test/sharness/t0165-keystore.sh b/test/sharness/t0165-keystore.sh index 3fafdc90c..ec9726a8a 100755 --- a/test/sharness/t0165-keystore.sh +++ b/test/sharness/t0165-keystore.sh @@ -33,7 +33,8 @@ test_key_cmd() { ' test_expect_success "key list -l contains self key with peerID" ' - ipfs key list -l | grep "$(ipfs config Identity.PeerID) self" + PeerID="$(ipfs config Identity.PeerID)" + ipfs key list -l | grep "$PeerID self" ' }