From 3cdeb730538f7fe8d4d63b0d17c8927170f5f760 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 16 Apr 2023 22:43:36 +0200 Subject: [PATCH] players --- ASTROBOT/VOEUX.refresh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ASTROBOT/VOEUX.refresh.sh b/ASTROBOT/VOEUX.refresh.sh index e35a7971..71a6fae5 100755 --- a/ASTROBOT/VOEUX.refresh.sh +++ b/ASTROBOT/VOEUX.refresh.sh @@ -186,7 +186,8 @@ do ################################## ## INSERT PLAYER G1 QRCODE : QRG1avatar.png - QRLINK=$(ipfs add -q ~/.zen/game/players/${PLAYER}/voeux/${WISHNAME}/${VOEUKEY}/voeu.png | tail -n 1) + [[ -s ~/.zen/game/players/${PLAYER}/voeux/${WISHNAME}/${VOEUKEY}/voeu.png ]] \ + && QRLINK=$(ipfs add -q ~/.zen/game/players/${PLAYER}/voeux/${WISHNAME}/${VOEUKEY}/voeu.png | tail -n 1) [[ $QRLINK == "" ]] && QRLINK=$(ipfs add -q ~/.zen/game/players/${PLAYER}/QRG1avatar.png | tail -n 1)