summaryrefslogtreecommitdiff
path: root/doc/special_remotes/external/git-annex-remote-ipfs
diff options
context:
space:
mode:
Diffstat (limited to 'doc/special_remotes/external/git-annex-remote-ipfs')
-rwxr-xr-xdoc/special_remotes/external/git-annex-remote-ipfs6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/special_remotes/external/git-annex-remote-ipfs b/doc/special_remotes/external/git-annex-remote-ipfs
index c8d97ef5c..f255f9bc5 100755
--- a/doc/special_remotes/external/git-annex-remote-ipfs
+++ b/doc/special_remotes/external/git-annex-remote-ipfs
@@ -81,9 +81,11 @@ while read line; do
echo CHECKURL-CONTENTS UNKNOWN "$(urltoaddress "$url")"
;;
TRANSFER)
+ op="$2"
key="$3"
- file="$4"
- case "$2" in
+ shift 3
+ file="$@"
+ case "$op" in
STORE)
addr=$(ipfs add -q "$file" </dev/null) || true
if [ -z "$addr" ]; then