REMOVE errors espeak zenity

This commit is contained in:
fred 2024-02-10 20:45:17 +01:00
parent 1d394616ae
commit b5fa8ad10b
1 changed files with 6 additions and 8 deletions

View File

@ -29,9 +29,10 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
#~ fi #~ fi
#~ ######################################################################## #~ ########################################################################
# REMOVE GtkDialog errors for zenity
#~ espeak "restarting I P F S daemon" shopt -s expand_aliases
#~ [[ "$isLAN" ]] && sudo systemctl restart ipfs alias zenity='zenity 2> >(grep -v GtkDialog >&2)'
alias espeak='espeak 1>&2>/dev/null'
## CHECK IF IPFS DAEMON IS STARTS WELL ## CHECK IF IPFS DAEMON IS STARTS WELL
floop=0 floop=0
@ -48,10 +49,7 @@ done
start=`date +%s` start=`date +%s`
# REMOVE GtkDialog errors for zenity
shopt -s expand_aliases
alias zenity='zenity 2> >(grep -v GtkDialog >&2)'
alias espeak='espeak 1>&2>/dev/null'
######################################################################## ########################################################################
[[ $(which ipfs) == "" ]] && echo "ERREUR! Installez ipfs" && exit 1 [[ $(which ipfs) == "" ]] && echo "ERREUR! Installez ipfs" && exit 1
[[ $(which zenity) == "" ]] && echo "ERREUR! Installez zenity" && echo "sudo apt install zenity" && exit 1 [[ $(which zenity) == "" ]] && echo "ERREUR! Installez zenity" && echo "sudo apt install zenity" && exit 1
@ -73,7 +71,7 @@ if [[ ${PLAYER} == "" ]]; then
players=($(ls ~/.zen/game/players | grep "@" 2>/dev/null)) players=($(ls ~/.zen/game/players | grep "@" 2>/dev/null))
if [[ ${#players[@]} -ge 1 ]]; then if [[ ${#players[@]} -ge 1 ]]; then
espeak "SELECT YOUR PLAYER" espeak "SELECT YOUR PLAYER" 2>/dev/null
OUTPUT=$(zenity --list --width 480 --height 200 --title="Choix du PLAYER" --column="Astronaute" "${players[@]}") OUTPUT=$(zenity --list --width 480 --height 200 --title="Choix du PLAYER" --column="Astronaute" "${players[@]}")
[[ ${OUTPUT} == "" ]] && espeak "No player selected. EXIT" && exit 1 [[ ${OUTPUT} == "" ]] && espeak "No player selected. EXIT" && exit 1
else else