A peer-to-peer stack for code collaboration
Fix rad-ipfs (#485)
Merle Breitkreuz5668d1f03086
diff --git a/bin/rad-ipfs b/bin/rad-ipfsindex 5ea7e77..5931e48 100755--- a/bin/rad-ipfs+++ b/bin/rad-ipfs@@ -8,8 +8,11 @@set -eo pipefailif [ -n "$RAD_IPFS_API_URL" ]; then- api_url=$(echo "$RAD_IPFS_API_URL" | sed --quiet --regexp-extended \- 's/^http:\/\/([a-zA-Z0-9\-_\.]+):([0-9]{1,5})/\/dns4\/\1\/tcp\/\2/;T exit; p; :exit')+ api_url=$(echo "$RAD_IPFS_API_URL" | sed -n -E \+ -e "s/^http:\/\/([a-zA-Z0-9_\.\-]+):([0-9]{1,5})/\/dns4\/\1\/tcp\/\2/;tprint" \+ -e "q" \+ -e ":print" \+ -e "p")if [ -z "$api_url" ]; thenecho "Invalid value for RAD_IPFS_API_URL: $RAD_IPFS_API_URL"exit 1