diff --git a/simple_backup.sh b/simple_backup.sh index 7e2efc523b55a92e54a5166f69a7ce63cbc4f6da..4c4c6a2678a9f0874032ca4c7306db8d0ea121b4 100755 --- a/simple_backup.sh +++ b/simple_backup.sh @@ -11,7 +11,7 @@ export DISPLAY=:0 zenity --timeout $TIMEOUT --question --title "Sauvegarde terminée." \ --text "Voulez vous procéder à l'extinction automatique de l'ordinateur ?" ans=$? -if [ $ans == 0 ] +if [ $ans != 1 ] then sudo shutdown -h now fi