Remove quotes

This commit is contained in:
Bob Mottram 2015-09-30 20:54:28 +01:00
parent 43eda2c774
commit 6706ed00b4
1 changed files with 1 additions and 1 deletions

View File

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