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