Skip to content

Commit 31ca65b

Browse files
authored
adding bell sound in the script
file gui_update_1.sh
1 parent c51e086 commit 31ca65b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

gui_update_1.sh

+14
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@
1212
#!/bin/bash
1313

1414

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+
1526
#Checking either zwnity installed or not
1627
zenity --version
1728
if [[ $? -ne 0 ]]
1829
then
30+
bell_sound
1931
echo -e "Please run \'~$ sudo apt install zenity\'\n before run this script" #zenity installation command
2032
else
2133
pass=$(zenity --password --width=320 --height=150 --timeout=10 --title="GUI Update & Upgrade") #Storing password into pass variable
@@ -44,6 +56,8 @@ else
4456
echo "# All Done!"
4557

4658
) | zenity --title "GUI Update & Upgrade Bash script.." --progress --auto-close --auto-kill --width=320 --height=150 --title="GUI Update & Upgrade"
59+
bell_sound
60+
4761

4862
fi
4963

0 commit comments

Comments
 (0)