forked from axiom-team/astrXbian
ipfsnodeid=$(echo "$geodata" | cut -d '/' -f 6 | cut -d '.' -f 2)
This commit is contained in:
parent
23d3bdeeee
commit
36daeb2077
|
@ -76,6 +76,7 @@ fi
|
||||||
## GEODATA. continue. Let's extract lieu pdf from my spot
|
## GEODATA. continue. Let's extract lieu pdf from my spot
|
||||||
##############################################################"
|
##############################################################"
|
||||||
geodata=$(ls ~/.zen/{ipfs,ipfs_swarm}/.*/astroport/map/$lat.$lon/p4n/spot.json 2>/dev/null | tail -n 1)
|
geodata=$(ls ~/.zen/{ipfs,ipfs_swarm}/.*/astroport/map/$lat.$lon/p4n/spot.json 2>/dev/null | tail -n 1)
|
||||||
|
ipfsnodeid=$(echo "$geodata" | cut -d '/' -f 6 | cut -d '.' -f 2)
|
||||||
|
|
||||||
if [[ "$ipfsnodeid" != "$IPFSNODEID" ]]; then
|
if [[ "$ipfsnodeid" != "$IPFSNODEID" ]]; then
|
||||||
echo "This spot.json is already managed by $ipfsnodeid"
|
echo "This spot.json is already managed by $ipfsnodeid"
|
||||||
|
|
Loading…
Reference in New Issue