We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c51e086 commit 31ca65bCopy full SHA for 31ca65b
gui_update_1.sh
@@ -12,10 +12,22 @@
12
#!/bin/bash
13
14
15
+function bell_sound(){
16
+ tput bel
17
+ if [[ $? -ne 0 ]]
18
+ then
19
+ printf "\a"
20
+ fi
21
+}
22
+
23
+#check internet is connect or not
24
25
26
#Checking either zwnity installed or not
27
zenity --version
28
if [[ $? -ne 0 ]]
29
then
30
+ bell_sound
31
echo -e "Please run \'~$ sudo apt install zenity\'\n before run this script" #zenity installation command
32
else
33
pass=$(zenity --password --width=320 --height=150 --timeout=10 --title="GUI Update & Upgrade") #Storing password into pass variable
@@ -44,6 +56,8 @@ else
44
56
echo "# All Done!"
45
57
46
58
) | zenity --title "GUI Update & Upgrade Bash script.." --progress --auto-close --auto-kill --width=320 --height=150 --title="GUI Update & Upgrade"
59
60
47
61
48
62
fi
49
63
0 commit comments