forked from STI/Astroport.ONE
fplayer FPLAYER tiddlers control PLAYER TW autoload TWz
This commit is contained in:
parent
60279e7621
commit
66adbb3f79
@ -99,26 +99,28 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
|
|
||||||
NOWCHAIN=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain)
|
NOWCHAIN=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain)
|
||||||
LASTCHAIN=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.* | tail -n 1)
|
LASTCHAIN=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.chain.* | tail -n 1)
|
||||||
|
try=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.try 2>/dev/null) || try=3
|
||||||
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>"
|
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>"
|
||||||
echo "<a href='$myIPFS/ipns/${ASTRONAUTENS}'>TW REFRESH FAILED</a>"
|
echo "<a href='$myIPFS/ipns/${ASTRONAUTENS}'>TW REFRESH FAILED</a>"
|
||||||
echo ">> %%% WARNING %%%"
|
echo ">> %%% WARNING TRY LEFT : $try %%%"
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
echo " * <a href='${myIPFS}/ipfs/${LASTCHAIN}'>LAST</a>"
|
echo " * <a href='${myIPFS}/ipfs/${LASTCHAIN}'>LAST</a>"
|
||||||
echo " *<a href='${myIPFS}/ipfs/${NOWCHAIN}'>NOW</a>"
|
echo " * <a href='${myIPFS}/ipfs/${NOWCHAIN}'>NOW</a>"
|
||||||
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||||
|
|
||||||
## SEND AN EMAIL ALERT TO PLAYER
|
## SEND AN EMAIL ALERT TO PLAYER
|
||||||
echo "<html><body><a href='$myIPFS/ipns/${ASTRONAUTENS}'>TW REFRESH FAILED</a>" > ~/.zen/tmp/result
|
echo "<html><body><a href='$myIPFS/ipns/${ASTRONAUTENS}'>TW REFRESH FAILED</a>" > ~/.zen/tmp/result
|
||||||
echo "<br>------------------------------------------------" >> ~/.zen/tmp/result
|
echo "<br>------------------------------------------------" >> ~/.zen/tmp/result
|
||||||
echo "" >> ~/.zen/tmp/result
|
echo "<br>" >> ~/.zen/tmp/result
|
||||||
echo "<br><a href='${myIPFS}/ipfs/${LASTCHAIN}'>ANCIENT</a>" >> ~/.zen/tmp/result
|
echo "<br><a href='${myIPFS}/ipfs/${LASTCHAIN}'>TW[-1]</a>" >> ~/.zen/tmp/result
|
||||||
echo "<br><a href='${myIPFS}/ipfs/${NOWCHAIN}'>NEW</a>" >> ~/.zen/tmp/result
|
echo "<br><a href='${myIPFS}/ipfs/${NOWCHAIN}'>TW[0]</a>" >> ~/.zen/tmp/result
|
||||||
echo "" >> ~/.zen/tmp/result
|
echo "<br>" >> ~/.zen/tmp/result
|
||||||
echo "<br> %%% WARNING %%%" >> ~/.zen/tmp/result
|
echo "<br> %%% WARNING %%% $try TRY LEFT %%%" >> ~/.zen/tmp/result
|
||||||
echo "<br>------------------------------------------------" >> ~/.zen/tmp/result
|
echo "<br>------------------------------------------------" >> ~/.zen/tmp/result
|
||||||
echo "<br>PLEASE REPAIR BY SAVING ONLINE</body></html>" >> ~/.zen/tmp/result
|
echo "<br>REPAIR BY SAVING ONLINE<br>" >> ~/.zen/tmp/result
|
||||||
echo "OR RUNNING CLI COMMAND : ipfs name publish --key=${PLAYER} /ipfs/${NOWCHAIN}" >> ~/.zen/tmp/result
|
echo "COMMAND :<br>ipfs name publish --key=${PLAYER} /ipfs/${NOWCHAIN}" >> ~/.zen/tmp/result
|
||||||
|
echo "</body></html>" >> ~/.zen/tmp/result
|
||||||
|
|
||||||
try=$(cat ~/.zen/game/players/${PLAYER}/ipfs/moa/.try 2>/dev/null) || try=3
|
|
||||||
|
|
||||||
[[ $try == 0 ]] \
|
[[ $try == 0 ]] \
|
||||||
&& echo "PLAYER ${PLAYER} UNPLUG" \
|
&& echo "PLAYER ${PLAYER} UNPLUG" \
|
||||||
@ -127,8 +129,8 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
|
|
||||||
try=$((try-1))
|
try=$((try-1))
|
||||||
echo "$try" > ~/.zen/game/players/${PLAYER}/ipfs/moa/.try
|
echo "$try" > ~/.zen/game/players/${PLAYER}/ipfs/moa/.try
|
||||||
echo " %%% WARNING %%% ${PLAYER} STATION UNPLUG IN $try DAY(S)." >> ~/.zen/tmp/result
|
|
||||||
$MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/result "UNPLUG WARNING"
|
$MY_PATH/../tools/mailjet.sh "${PLAYER}" ~/.zen/tmp/result "TW[+1] REFRESH WARNING"
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -248,12 +250,12 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
[[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]] \
|
[[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]] \
|
||||||
&& echo "## Connect_PLAYER_To_Gchange.sh" \
|
&& echo "## Connect_PLAYER_To_Gchange.sh" \
|
||||||
&& ${MY_PATH}/../tools/Connect_PLAYER_To_Gchange.sh "${PLAYER}" \
|
&& ${MY_PATH}/../tools/Connect_PLAYER_To_Gchange.sh "${PLAYER}" \
|
||||||
|| echo "$COINS <= 1 G1 + 10 ẑen : stars exchange (★★★★★) level"
|
|| echo "$COINS <= 1 G1 + 10 ẑen : bypass Gchange stars exchange (★★★★★)"
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
# G1PalPay - 1 G1 mini -> Check for G1 TX incoming comments #
|
# G1PalPay - 2 G1 mini -> Check for G1 TX incoming comments #
|
||||||
##############################################################
|
##############################################################
|
||||||
if [[ $(echo "$COINS >= 1" | bc -l) -eq 1 ]]; then
|
if [[ $(echo "$COINS >= 2" | bc -l) -eq 1 ]]; then
|
||||||
##############################################################
|
##############################################################
|
||||||
# G1PalPay.sh #
|
# G1PalPay.sh #
|
||||||
##############################################################
|
##############################################################
|
||||||
@ -271,10 +273,12 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
${MY_PATH}/VOEUX.refresh.sh "${PLAYER}" "${MOATS}" ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html
|
${MY_PATH}/VOEUX.refresh.sh "${PLAYER}" "${MOATS}" ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "> ZenCard not activated ($ZEN)"
|
echo "> ZenCard not activated ($ZEN ZEN)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
# (RE)MAKE "CESIUM" TIDDLER
|
# (RE)MAKE "CESIUM" TIDDLER
|
||||||
|
echo "Create CESIUM Tiddler"
|
||||||
cat ${MY_PATH}/../templates/data/CESIUM.json \
|
cat ${MY_PATH}/../templates/data/CESIUM.json \
|
||||||
| sed -e "s~_G1PUB_~${G1PUB}~g" \
|
| sed -e "s~_G1PUB_~${G1PUB}~g" \
|
||||||
-e "s~_CESIUMIPFS_~${CESIUMIPFS}~g" \
|
-e "s~_CESIUMIPFS_~${CESIUMIPFS}~g" \
|
||||||
@ -282,7 +286,8 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
> ~/.zen/tmp/${MOATS}/CESIUM.json
|
> ~/.zen/tmp/${MOATS}/CESIUM.json
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
## GET $:/moa Tiddlers #######################################
|
#####################################################################
|
||||||
|
## GET $:/moa Tiddlers ####################################### START
|
||||||
echo "GET $:/moa Tiddlers"
|
echo "GET $:/moa Tiddlers"
|
||||||
###################################################### [tag[$:/moa]]
|
###################################################### [tag[$:/moa]]
|
||||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
||||||
@ -294,33 +299,52 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
INPUTPLAYERS=()
|
INPUTPLAYERS=()
|
||||||
for fp in ${fplayers[@]}; do
|
for fp in ${fplayers[@]}; do
|
||||||
|
|
||||||
[[ "${fp}" == "${PLAYER}" ]] && echo "moa" && continue
|
[[ ! "${fp}" =~ ^[a-zA-Z0-9.%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$ ]] && echo "BAD ${fp} FORMAT" && continue
|
||||||
|
[[ "${fp}" == "${PLAYER}" ]] && echo "IT'S ME - CONTINUE" && continue
|
||||||
|
|
||||||
FPLAYER=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .president')
|
FPLAYER=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .player')
|
||||||
[[ $FPLAYER == 'null' ]] && echo "null" && continue
|
[[ $FPLAYER == 'null' || $FPLAYER == '' ]] && echo "FPLAYER null - CONTINUE" && continue
|
||||||
echo "$FPLAYER coucou"
|
|
||||||
|
|
||||||
FTW=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .tw')
|
FTW=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .tw')
|
||||||
echo "TW: $FTW"
|
[[ ${FTW} == "/ipns/" && ${FTW} == "null" && ${FTW} == "" ]] && echo "WEIRD FTW ${FTW} - CONTINUE" && continue
|
||||||
|
|
||||||
FG1PUB=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .g1pub')
|
FG1PUB=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .g1pub')
|
||||||
echo "G1: $FG1PUB"
|
[[ $FG1PUB == 'null' || $FG1PUB == '' ]] && echo "FG1PUB null - CONTINUE" && continue
|
||||||
|
|
||||||
IHASH=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .text' | sha256sum | cut -d ' ' -f 1)
|
IHASH=$(cat ~/.zen/tmp/${MOATS}/FRIENDS.json | jq .[] | jq -r 'select(.title=="'${fp}'") | .text' | sha256sum | cut -d ' ' -f 1)
|
||||||
|
|
||||||
|
echo ":: coucou :: $FPLAYER :: (ᵔ◡◡ᵔ) ::"
|
||||||
|
echo "TW: $FTW"
|
||||||
|
echo "G1: $FG1PUB"
|
||||||
echo "IHASH: $IHASH"
|
echo "IHASH: $IHASH"
|
||||||
|
|
||||||
if [[ ${FTW} != "/ipns/" && ${FTW} != "null" && ${FTW} != "" ]]; then
|
## GET ORIGINH FROM LAST KNOWN TW STATE
|
||||||
|
mkdir -p ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}
|
||||||
|
if [[ -s ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html ]]; then
|
||||||
|
rm -f ~/.zen/tmp/${MOATS}/forigin.json
|
||||||
|
tiddlywiki --load ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html \
|
||||||
|
--output ~/.zen/tmp/${MOATS} \
|
||||||
|
--render '.' "${FPLAYER}.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '${FPLAYER}' ## GET ORIGIN
|
||||||
|
|
||||||
## CHECK ALREADY IN IHASH
|
ORIGINH=$(cat ~/.zen/tmp/${MOATS}/${FPLAYER}.json | jq -r '.[].text' | sha256sum | cut -d ' ' -f 1)
|
||||||
|
echo "ORIGINH: $ORIGINH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
( ## REFRESH LOCAL PLAYER CACHE with FRIEND ACTUAL TW (&)
|
||||||
|
ipfs --timeout 180s cat ${FTW} > ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html
|
||||||
|
) &
|
||||||
|
|
||||||
|
## CHECK ALREADY IN ${FPLAYER^^} IHASH
|
||||||
rm -f ~/.zen/tmp/${MOATS}/finside.json
|
rm -f ~/.zen/tmp/${MOATS}/finside.json
|
||||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
||||||
--output ~/.zen/tmp/${MOATS} \
|
--output ~/.zen/tmp/${MOATS} \
|
||||||
--render '.' 'finside.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '${FPLAYER^^}' ## $:/moa EMAIL Tiddlers
|
--render '.' 'finside.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '${FPLAYER^^}' ## ${FPLAYER^^} autoload Tiddlers
|
||||||
|
|
||||||
INSIDEH=$(cat ~/.zen/tmp/${MOATS}/finside.json | jq .[] | jq -r 'select(.title=="'${FPLAYER^^}'") | .ihash')
|
INSIDEH=$(cat ~/.zen/tmp/${MOATS}/finside.json | jq -rc '.[].ihash')
|
||||||
echo $INSIDEH
|
echo "INSIDEH: $INSIDEH"
|
||||||
## UPDATE IF IHASH CHANGED
|
|
||||||
if [[ ! $INSIDEH || $INSIDEH != $IHASH ]]; then
|
## UPDATE IF IHASH CHANGED -> New drawing => Friend get informed
|
||||||
|
if [[ -z $INSIDEH || $INSIDEH != $IHASH || $ORIGINH != $INSIDEH ]]; then
|
||||||
cat ${MY_PATH}/../templates/data/_UPPERFPLAYER_.json \
|
cat ${MY_PATH}/../templates/data/_UPPERFPLAYER_.json \
|
||||||
| sed -e "s~_UPPERFPLAYER_~${FPLAYER^^}~g" \
|
| sed -e "s~_UPPERFPLAYER_~${FPLAYER^^}~g" \
|
||||||
-e "s~_FPLAYER_~${FPLAYER}~g" \
|
-e "s~_FPLAYER_~${FPLAYER}~g" \
|
||||||
@ -328,21 +352,27 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
-e "s~_IHASH_~${IHASH}~g" \
|
-e "s~_IHASH_~${IHASH}~g" \
|
||||||
-e "s~_FRIENDTW_~${FTW}~g" \
|
-e "s~_FRIENDTW_~${FTW}~g" \
|
||||||
-e "s~_PLAYER_~${PLAYER}~g" \
|
-e "s~_PLAYER_~${PLAYER}~g" \
|
||||||
> ~/.zen/tmp/${MOATS}/${FPLAYER}.json
|
> ~/.zen/tmp/${MOATS}/${FPLAYER^^}.json
|
||||||
echo "( ---- /G |\ |Z / / /"
|
|
||||||
cat ~/.zen/tmp/${MOATS}/${FPLAYER}.json | jq
|
echo "Insert New ${FPLAYER^^}.json"
|
||||||
INPUTPLAYERS+=(" --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER}.json 'application/json' ") # Append to the array
|
cat ~/.zen/tmp/${MOATS}/${FPLAYER^^}.json | jq
|
||||||
fi
|
|
||||||
|
INPUTPLAYERS+=(" --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER^^}.json 'application/json' ") # Append to the array
|
||||||
|
[[ $ORIGINH != $INSIDEH ]] \
|
||||||
|
&& echo "ORIGINH Update" \
|
||||||
|
&& INPUTPLAYERS+=(" --import ${HOME}/.zen/tmp/${MOATS}/${FPLAYER}.json 'application/json' ")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
## FRIENDS TW FLUX TO IMPORT
|
## FRIENDS TW FLUX TO IMPORT
|
||||||
echo "${INPUTPLAYERS[@]}"
|
echo "${INPUTPLAYERS[@]}"
|
||||||
|
#####################################################################
|
||||||
|
## GET $:/moa Tiddlers ####################################### END
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# REFRESH PLAYER_feed # (could be deprecated)
|
# REFRESH PLAYER_feed KEY
|
||||||
##################################
|
##################################
|
||||||
echo "# TW : GW API + LightBeam Feed + Friends"
|
echo "# TW : GW API + LightBeam Feed + Friends"
|
||||||
TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3)
|
TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3)
|
||||||
@ -369,7 +399,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
|||||||
#~ echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","text":"'${FRIENDSFEEDS}'","tags":""}]' > ~/.zen/tmp/${MOATS}/friends.json
|
#~ echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","text":"'${FRIENDSFEEDS}'","tags":""}]' > ~/.zen/tmp/${MOATS}/friends.json
|
||||||
#~ ## ADD --import "$HOME/.zen/tmp/${MOATS}/friends.json" "application/json" \ ## MANUAL TW RSS REGISTRATION
|
#~ ## ADD --import "$HOME/.zen/tmp/${MOATS}/friends.json" "application/json" \ ## MANUAL TW RSS REGISTRATION
|
||||||
|
|
||||||
## PATCH : RESTORE PLAYER GPS.json (can be erase by WISH treatment)
|
## PATCH : RESTORE PLAYER GPS.json (protect cache erased by WISH treatment)
|
||||||
cp -f ~/.zen/game/players/${PLAYER}/GPS.json ~/.zen/tmp/${MOATS}/
|
cp -f ~/.zen/game/players/${PLAYER}/GPS.json ~/.zen/tmp/${MOATS}/
|
||||||
## WRITE TIDDLERS IN TW SECTORTW_NEWS.json
|
## WRITE TIDDLERS IN TW SECTORTW_NEWS.json
|
||||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
||||||
|
@ -26,15 +26,15 @@ ASTROTOIPFS=$(~/.zen/Astroport.ONE/tools/g1_to_ipfs.py ${G1PUB} 2>/dev/null)
|
|||||||
&& echo "INVALID G1PUB : ${G1PUB}" \
|
&& echo "INVALID G1PUB : ${G1PUB}" \
|
||||||
&& exit 1
|
&& exit 1
|
||||||
|
|
||||||
echo "TW ? $myIPFS/ipns/${ASTROTOIPFS}"
|
echo "COINCHECK ${G1PUB} -> TW : $myIPFS/ipns/${ASTROTOIPFS}"
|
||||||
|
|
||||||
#######################################################
|
#######################################################
|
||||||
## CLEANING DAY+1 COINS CACHE FILES
|
## CLEANING DAY+1 COINS CACHE FILES
|
||||||
# find ~/.zen/game/players/ -mtime +1 -type f -name "COINS" -exec rm -f '{}' \;
|
# find ~/.zen/game/players/ -mtime +1 -type f -name "COINS" -exec rm -f '{}' \;
|
||||||
|
echo "Cleaning ${G1PUB}.COINS"
|
||||||
find ~/.zen/tmp/ -mtime +1 -type f -name "${G1PUB}.COINS" -exec mv '{}' $HOME/.zen/tmp/backup.${G1PUB} \;
|
find ~/.zen/tmp/ -mtime +1 -type f -name "${G1PUB}.COINS" -exec mv '{}' $HOME/.zen/tmp/backup.${G1PUB} \;
|
||||||
[ $? == 0 ] && echo "Cleaning ${G1PUB}.COINS"
|
echo "Cleaning ${G1PUB}.g1history.json"
|
||||||
find ~/.zen/tmp/coucou/ -mtime +1 -type f -name "${G1PUB}.g1history.json" -exec rm '{}' \;
|
find ~/.zen/tmp/coucou/ -mtime +1 -type f -name "${G1PUB}.g1history.json" -exec rm '{}' \;
|
||||||
[ $? == 0 ] && echo "Cleaning ${G1PUB}.g1history.json"
|
|
||||||
#######################################################
|
#######################################################
|
||||||
|
|
||||||
## IDENTIFY IF "ASTROPORT" PLAYER
|
## IDENTIFY IF "ASTROPORT" PLAYER
|
||||||
@ -56,7 +56,7 @@ ${MY_PATH}/GetGCAttributesFromG1PUB.sh ${G1PUB}
|
|||||||
|
|
||||||
# echo "ACTUAL $COINSFILE CONTAINS"
|
# echo "ACTUAL $COINSFILE CONTAINS"
|
||||||
CURCOINS=$(cat $COINSFILE 2>/dev/null)
|
CURCOINS=$(cat $COINSFILE 2>/dev/null)
|
||||||
echo "$CURCOINS (G1)"
|
echo "SOLDE : $CURCOINS G1"
|
||||||
|
|
||||||
## NO or NULL RESULT in CACHE : REFRESHING
|
## NO or NULL RESULT in CACHE : REFRESHING
|
||||||
if [[ $CURCOINS == "" || $CURCOINS == "null" ]]; then
|
if [[ $CURCOINS == "" || $CURCOINS == "null" ]]; then
|
||||||
@ -75,6 +75,6 @@ if [[ $CURCOINS == "" || $CURCOINS == "null" ]]; then
|
|||||||
echo $CURCOINS
|
echo $CURCOINS
|
||||||
) &
|
) &
|
||||||
fi
|
fi
|
||||||
|
#### tail -n 1 FUNCTION RESULT
|
||||||
echo $CURCOINS
|
echo $CURCOINS
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user