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
WHO=$(whoami)
if [[ $WHO == "pikaos" ]]; then
zenity --info --text ""$1" has been processed successfully."
else
if echo $1 | grep -i mesa
then
true
zenity --info --text ""$1" has been processed successfully."
else
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
then
systemctl reboot
fi
fi
fi