File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
#! /bin/bash
13
+ r=" \e[1;31m" # red color
14
+ u=" \e[0m" # reinstall default color
13
15
14
16
15
17
function bell_sound(){
@@ -28,7 +30,16 @@ zenity --version
28
30
if [[ $? -ne 0 ]]
29
31
then
30
32
bell_sound
31
- echo -e " Please run \'~$ sudo apt install zenity\'\n before run this script" # zenity installation command
33
+ echo -e " $r Please run \'~$ sudo apt install zenity\'\n before run this script $u " # zenity installation command
34
+ zenity --warning --text=" No Zenity packages found" --width=320 --height=150 --timeout=3 --title=" GUI Update & Upgrade"
35
+ zenity --question --text=" Do you like to installed it in your machine?" --width=320 --height=150 --timeout=5 --title=" GUI Update & Upgrade"
36
+ if [[ $? -eq 0 ]]
37
+ then
38
+ pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" )
39
+ $pass | sudo apt install zenity -y
40
+ else
41
+ exit
42
+ fi
32
43
else
33
44
pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" ) # Storing password into pass variable
34
45
(
You can’t perform that action at this time.
0 commit comments