forked from axiom-team/astrXbian
IsAlreadythere pb
This commit is contained in:
parent
e2dea7e5af
commit
b6e73fded9
|
@ -132,7 +132,7 @@ do
|
|||
echo "jq '.Peering.Peers? += { \"Addrs\": [], \"ID\": \"'$ipfsnodeid'\" }'"
|
||||
################################################################
|
||||
Addr=$(echo "$peerline" | rev | cut -d '/' -f 2- | rev )
|
||||
IsAlreadythere=$(cat ~/.ipfs/config.new | grep '"$ipfsnodeid"') && echo $IsAlreadythere
|
||||
IsAlreadythere=$(cat ~/.ipfs/config.new | grep \"$ipfsnodeid\") && echo $IsAlreadythere
|
||||
if [[ ! $IsAlreadythere ]]; then
|
||||
echo '{ "ID": "'$ipfsnodeid'", "Addrs": [] }' >> ~/.zen/A_peering_peers.txt
|
||||
#jq '.Peering.Peers? += { "Addrs": [], "ID": "'$ipfsnodeid'" }' ~/.ipfs/config.new > ~/.ipfs/config.wew && cp ~/.ipfs/config.wew ~/.ipfs/config.new
|
||||
|
|
Loading…
Reference in New Issue