Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubo_final
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anastasiia Chirikova
kubo_final
Commits
e6201151
Commit
e6201151
authored
9 years ago
by
Christian Couder
Browse files
Options
Downloads
Patches
Plain Diff
t0081: fix greping pin type
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
7e8052ef
No related branches found
No related tags found
1 merge request
!1
New
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/bin/ipfs-pin-stat
+3
-3
3 additions, 3 deletions
test/bin/ipfs-pin-stat
test/sharness/t0081-repo-pinning.sh
+1
-1
1 addition, 1 deletion
test/sharness/t0081-repo-pinning.sh
with
4 additions
and
4 deletions
test/bin/ipfs-pin-stat
+
3
−
3
View file @
e6201151
...
...
@@ -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
This diff is collapsed.
Click to expand it.
test/sharness/t0081-repo-pinning.sh
+
1
−
1
View file @
e6201151
...
...
@@ -17,7 +17,7 @@ test_pin_flag() {
echo
"test_pin_flag"
$@
ipfs-pin-stat
"
$object
"
|
grep
"
$ptype
"
ipfs-pin-stat
"
$object
"
|
e
grep
"
\b
$ptype
\b
"
actual
=
$?
if
[
"
$expect
"
=
"true"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment