[[ ! -e ~/.zen/game/players/.current ]]

This commit is contained in:
fred 2024-03-08 14:52:47 +01:00
parent c227bfd8a8
commit 0f6c3f786d
2 changed files with 68 additions and 64 deletions

View File

@ -514,7 +514,8 @@ echo "--- PLAYER : ${PLAYER} - DATA PROTOCOL LAYER LOADED";
[[ $XDG_SESSION_TYPE == 'x11' || $XDG_SESSION_TYPE == 'wayland' ]] && xdg-open "${myIPFS}/ipns/${ASTRONAUTENS}" && espeak "YOUR PASS IS $PASS"
####### NO CURRENT ? PLAYER = .current
[[ ! -l ~/.zen/game/players/.current ]] \
[[ ! -e ~/.zen/game/players/.current ]] \
&& rm ~/.zen/game/players/.current 2>/dev/null \
&& ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current
. "${MY_PATH}/../tools/my.sh"

View File

@ -37,12 +37,11 @@ YOU=$(myIpfsApi);
echo 'PRESS ENTER... '; read
## CREATE AND OR CONNECT USER
PS3='Astronaute connectez votre PLAYER ___ '
players=( "CREATE PLAYER" "IMPORT PLAYER" "PRINT QRCARD" $(ls ~/.zen/game/players | grep "@" 2>/dev/null))
## MULTIPLAYER
PS3='DRAGON connectez votre PLAYER ___ '
players=( "CREATE PLAYER" "IMPORT PLAYER" "PRINT QRCARD" $(ls ~/.zen/game/players | grep "@" 2>/dev/null))
## MULTIPLAYER
select fav in "${players[@]}"; do
select fav in "${players[@]}"; do
case $fav in
"PRINT QRCARD")
## DIRECT VISA.print.sh
@ -103,9 +102,13 @@ echo 'PRESS ENTER... '; read
break
;;
esac
done
PLAYER=$fav
done
PLAYER=$fav
####### NO CURRENT ? PLAYER = .current
[[ ! -e ~/.zen/game/players/.current ]] \
&& rm ~/.zen/game/players/.current 2>/dev/null \
&& ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current
pass=$(cat ~/.zen/game/players/$PLAYER/.pass 2>/dev/null)
########################################## DEVEL