verify ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr exists

This commit is contained in:
qo-op 2021-03-12 00:40:49 +01:00
parent bfc2db1199
commit fb804d4d41
1 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,11 @@ do
then
echo "I AM $G1PUB"
echo "Sending IPFSTRYME message to $liking_me"
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey send -d $liking_me -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
if [[ -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr ]]; then
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey send -d $liking_me -t "ipfstryme" -f ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
else
echo 'MISSING ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr'
fi
else
echo "tryme.addr MESSAGE ALREADY SEND TO $liking_me"
fi