test/bin: remove ipfs-pin-stat
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Jan 16, 2016 at 16:12 UTC
2dd4f40c1050871d4957c1f9a5d48218d8348aac
2 files changed
-31
test/bin/.gitignore
-1
@@ -7,5 +7,4 @@
7
# Do not ignore the following special scripts
8
!checkflags
9
!continueyn
10
-!ipfs-pin-stat
10
!verify-go-fmt.sh
test/bin/ipfs-pin-stat
deleted
-30
@@ -1,30 +0,0 @@
1
-#!/bin/sh
2
-
3
-die() {
4
- echo "$@"
5
- exit 1
6
-}
7
-
8
-if [ "$#" -eq 0 ]; then
9
- echo "usage: $0 <object>"
10
- echo "show ipfs pin information for object"
11
- exit 1
12
-fi
13
-
14
-path=$1
15
-
16
-echo "$path" | grep "/" >/dev/null
17
-if [ "$?" -eq 0 ]; then
18
- die "error: paths not supported. please resolve to hash first."
19
-fi
20
-
21
-ipfs pin ls --type=recursive | grep "$path" >/dev/null
22
-[ "$?" -eq 0 ] && echo "$path pinned recursive-ly"
23
-
24
-ipfs pin ls --type=indirect | grep "$path" >/dev/null
25
-[ "$?" -eq 0 ] && echo "$path pinned indirect-ly"
26
-
27
-ipfs pin ls --type=direct | grep "$path" >/dev/null
28
-[ "$?" -eq 0 ] && echo "$path pinned direct-ly"
29
-
30
-exit 0