[[ ! -e ~/.zen/game/players/.current ]]
This commit is contained in:
parent
c227bfd8a8
commit
0f6c3f786d
|
@ -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"
|
||||
|
|
|
@ -37,11 +37,10 @@ YOU=$(myIpfsApi);
|
|||
echo 'PRESS ENTER... '; read
|
||||
|
||||
## CREATE AND OR CONNECT USER
|
||||
PS3='Astronaute connectez votre PLAYER ___ '
|
||||
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
|
||||
case $fav in
|
||||
"PRINT QRCARD")
|
||||
|
@ -106,6 +105,10 @@ echo 'PRESS ENTER... '; read
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue