From 7df2748b83ef1625e26e1763a0ef918bde24cbf0 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 27 Mar 2024 12:31:25 +0100 Subject: [PATCH] ## LAST LINE EXPORT --- tools/getUMAP_ENV.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/getUMAP_ENV.sh b/tools/getUMAP_ENV.sh index 8f3d3ef1..f0b4a1b6 100755 --- a/tools/getUMAP_ENV.sh +++ b/tools/getUMAP_ENV.sh @@ -14,8 +14,8 @@ LON="$2" ZLAT=$(makecoord ${LAT}) ZLON=$(makecoord ${LON}) ## CHECK -[[ "$ZLAT" != "$LAT" ]] && echo "ERROR - $LAT bad format -" && exit 1 -[[ "$ZLON" != "$LON" ]] && echo "ERROR - $LON bad format -" && exit 1 +[[ "$ZLAT" != "$LAT" ]] && echo "# ERROR - $LAT bad format -" && exit 1 +[[ "$ZLON" != "$LON" ]] && echo "# ERROR - $LON bad format -" && exit 1 ## COMPUTE UMAP, USECTOR, UREGION SLAT="${LAT::-1}" @@ -27,7 +27,7 @@ RLON="$(echo ${LON} | cut -d '.' -f 1)" echo "UMAP : _${LAT}_${LON}" UMAPG1PUB=$(cat ~/.zen/tmp/swarm/*/UPLANET/__/_${RLAT}_${RLON}/_${SLAT}_${SLON}/_${LAT}_${LON}/G1PUB 2>/dev/null | tail -n 1) [[ ! $UMAPG1PUB ]] && UMAPG1PUB=$(cat ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${RLAT}_${RLON}/_${SLAT}_${SLON}/_${LAT}_${LON}/G1PUB 2>/dev/null | tail -n 1) -[[ ! $UMAPG1PUB ]] && echo "NO UMAP FOUND" && exit 0 +# [[ ! $UMAPG1PUB ]] && echo "NO UMAP FOUND" && exit 0 echo "UMAPG1PUB=$UMAPG1PUB" UMAPIPNS="/ipns/"$(cat ~/.zen/tmp/swarm/*/UPLANET/__/_${RLAT}_${RLON}/_${SLAT}_${SLON}/_${LAT}_${LON}/TODATENS 2>/dev/null | tail -n 1) [[ $UMAPIPNS == "/ipns/" ]] && UMAPIPNS="/ipns/"$(cat ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${RLAT}_${RLON}/_${SLAT}_${SLON}/_${LAT}_${LON}/TODATENS 2>/dev/null | tail -n 1) @@ -49,6 +49,7 @@ REGIONIPNS="/ipns/"$(cat ~/.zen/tmp/swarm/*/UPLANET/__/_${RLAT}_${RLON}/_${SLAT} [[ $REGIONIPNS == "/ipns/" ]] && REGIONIPNS="/ipns/"$(cat ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${RLAT}_${RLON}/_${SLAT}_${SLON}/_${LAT}_${LON}/REGIONNS 2>/dev/null | tail -n 1) echo "REGIONIPNS=$REGIONIPNS" - +echo "## LAST LINE EXPORT" +echo "export UMAPG1PUB=$UMAPG1PUB UMAPIPNS=$UMAPIPNS SECTORG1PUB=$SECTORG1PUB SECTORIPNS=$SECTORIPNS REGIONG1PUB=$REGIONG1PUB REGIONIPNS=$REGIONIPNS" exit 0