|
@@ -242,7 +242,7 @@ echo '<ol type="square">' >> $IPFS_FILE.new
|
242
|
242
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
243
|
243
|
if [ ${state} -eq "3" ]; then
|
244
|
244
|
if [[ $line == *"txt ="* ]]; then
|
245
|
|
- ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}')
|
|
245
|
+ ipfs_peer_id=$(echo $line | awk -F '[' '{print $2}' | awk -F ']' '{print $1}' | awk -F '"' '{print $2}')
|
246
|
246
|
ipfs add /ip4/${address}/tcp/${IPFS_PORT}/ipfs/${ipfs_peer_id}
|
247
|
247
|
echo " <li><a href=http://localhost:5001/ipfs/${ipfs_peer_id}>${peer}</a></li>" >> $IPFS_FILE.new
|
248
|
248
|
state=0
|