Update dialog-success.sh
This commit is contained in:
parent
5763d32ca3
commit
c6a938f2a0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user