Commit e6201151 authored by Christian Couder's avatar Christian Couder

t0081: fix greping pin type

License: MIT
Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
parent 7e8052ef
......@@ -19,12 +19,12 @@ if [ "$?" -eq 0 ]; then
fi
ipfs pin ls --type=recursive | grep "$path" >/dev/null
[ "$?" -eq 0 ] && echo "$path pinned recursively"
[ "$?" -eq 0 ] && echo "$path pinned recursive-ly"
ipfs pin ls --type=indirect | grep "$path" >/dev/null
[ "$?" -eq 0 ] && echo "$path pinned indirectly"
[ "$?" -eq 0 ] && echo "$path pinned indirect-ly"
ipfs pin ls --type=direct | grep "$path" >/dev/null
[ "$?" -eq 0 ] && echo "$path pinned directly"
[ "$?" -eq 0 ] && echo "$path pinned direct-ly"
exit 0
......@@ -17,7 +17,7 @@ test_pin_flag() {
echo "test_pin_flag" $@
ipfs-pin-stat "$object" | grep "$ptype"
ipfs-pin-stat "$object" | egrep "\b$ptype\b"
actual=$?
if [ "$expect" = "true" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment