1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 03:28:25 +08:00

t0081: fix greping pin type

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2016-01-15 09:52:31 +01:00
parent 7e8052ef32
commit e6201151c6
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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