From 080a3e96ea6e25d7d41a14b6b6d46156a30d839b Mon Sep 17 00:00:00 2001 From: "@RubenKelevra" Date: Fri, 10 Jul 2020 06:16:29 +0200 Subject: [PATCH] add hint why we need this workaround --- bin/rsync2cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/rsync2cluster.sh b/bin/rsync2cluster.sh index 1289dc1..ecde279 100644 --- a/bin/rsync2cluster.sh +++ b/bin/rsync2cluster.sh @@ -258,7 +258,8 @@ function ipfs_mfs_add_file() { [ -z "$2" ] && fail "ipfs_mfs_add_file() was called with an empty second argument" 281 [ ! -f "$1" ] && fail "ipfs_mfs_add_file() was called with a path to a file which didn't exist: '$1'" 282 local _cid="" - + + # workaround for https://github.com/ipfs/go-ipfs/issues/7532 if ! _cid=$(ipfs_api add --chunker "$ipfs_chunker" --hash "$ipfs_hash" --cid-version "$ipfs_cid" --quieter "$1"); then fail "ipfs_mfs_add_file() could not add the file '$1' to ipfs" 283 elif ! ipfs_api files cp "/ipfs/$_cid" "$2" >/dev/null 2>&1; then