diff --git a/ajouter_media.sh b/ajouter_media.sh index aa5a949a..f5de4e08 100755 --- a/ajouter_media.sh +++ b/ajouter_media.sh @@ -45,7 +45,11 @@ CHOICE="$3" && OUTPUT=$(zenity --entry --width 640 --title="=> Astroport" --text="ASTRONAUTE ?" --entry-text=${players[@]}) \ && [[ $OUTPUT ]] && PLAYER=$OUTPUT && rm -f ~/.zen/game/players/.current && ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current \ -[[ ${PLAYER} == "" ]] && xdg-open "http://astroport.localhost:1234" && exit 1 +[[ ${PLAYER} == "" ]] \ +&& ${MY_PATH}/start.sh \ +&& espeak "Astroport Empty. Enter your magic email" \ +&& xdg-open "http://astroport.localhost:1234" \ +&& exit 1 PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null) espeak "Hello $PSEUDO"