From a831e557b77852e8006f2f81795f90ef79a0401e Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 23 Dec 2022 22:38:15 +0100 Subject: [PATCH] espeak "Astroport Empty. Enter your magic email" --- ajouter_media.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"