Update dialog-success.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-02-21 00:47:27 +03:00 committed by GitHub
parent 5763d32ca3
commit c6a938f2a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,11 +1,16 @@
#! /bin/bash #! /bin/bash
WHO=$(whoami)
if [[ $WHO == "pikaos" ]]; then
zenity --info --text ""$1" has been processed successfully."
else
if echo $1 | grep -i mesa if echo $1 | grep -i mesa
then then
true zenity --info --text ""$1" has been processed successfully."
else else
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?" if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
then then
systemctl reboot systemctl reboot
fi fi
fi fi
fi