de rien je fait pas grand chose 😃
Pour la mise a jour faudrais quelque chose comme ça
# Mise à jour automatique du script
function maj_auto
{
cd /tmp
rm -f canal*
wget "http://ibidems.free.fr/ras/script/canal" &>/dev/null
if ! [[ -f canal ]]
then zenity --warning --title="Fin du script" --text="Veuillez vérifier votre connection internet et relancer le script."
exit
fi
new=$( cat canal | grep "version=[v]" | cut -f2 -d "=" )
wget "http://ibidems.free.fr/ras/script/$new.txt" &>/dev/null
if ! [[ "$new" = "$version" ]]
then
zenity --info --text="La version $new est disponible, voici la liste des nouveautées :
$(cat $new.txt)
Voulez vous installer cette version ?"
if [[ $? == "0" ]]
then
echo "Mise à jour du script en cours..."
set --
rm -f "$parent_dir"/canal
cp canal "$parent_dir"/
chmod +x "$parent_dir"/canal
rm -f canal*
zenity --question --title="Mise à jour" --text="Une mise à jour a été effectuée vers la version $new
Merci de bien vouloir relancer le script."
exit
fi
fi
}
Bon je lance le fichier je dis installer les dépendances ensuite dans la console
=> [[ PY ]] => :: FIFO write :: _filechooserdialog1 /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)
=> [[ PY ]] => DEBUG=> in bash NOT GET _filechooserdialog1 /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)
=> [[ PY ]] => /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)/installer.sh: line 45: /home/n3o-chacha/.config/google2voice/install.txt: Aucun fichier ou dossier de ce type
=> [[ PY ]] => /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)/installer.sh: line 46: /home/n3o-chacha/.config/google2voice/config.cfg: Aucun fichier ou dossier de ce type
Et le fiechooser ne ce lance pas
enfin si je relance en selctionnant ne pas installer le filechooser s'ouvre et se referme aussitot avec ça en console
=> [[ PY ]] => DEBUG=> in bash NOT GET _filechooserdialog1 /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)
=> [[ PY ]] => /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)/installer.sh: line 45: /home/n3o-chacha/.config/google2voice/install.txt: Aucun fichier ou dossier de ce type
=> [[ PY ]] => /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)/installer.sh: line 46: /home/n3o-chacha/.config/google2voice/config.cfg: Aucun fichier ou dossier de ce type
=> [[ PY ]] => :: FIFO write :: _filechooserdialog1 /home/n3o-chacha/Bureau/nouveaudossier/google2voice(10)
=> [[ PY ]] => EXIT@@
=> [[ PY ]] => :: FIFO write :: QuitNow