Skip to content

Commit

Permalink
Update gui_update_1.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
baponkar authored May 3, 2021
1 parent 31ca65b commit 1748348
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gui_update_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@


#!/bin/bash
r="\e[1;31m" #red color
u="\e[0m" #reinstall default color


function bell_sound(){
Expand All @@ -28,7 +30,16 @@ zenity --version
if [[ $? -ne 0 ]]
then
bell_sound
echo -e "Please run \'~$ sudo apt install zenity\'\n before run this script" #zenity installation command
echo -e "$r Please run \'~$ sudo apt install zenity\'\n before run this script $u" #zenity installation command
zenity --warning --text="No Zenity packages found" --width=320 --height=150 --timeout=3 --title="GUI Update & Upgrade"
zenity --question --text="Do you like to installed it in your machine?" --width=320 --height=150 --timeout=5 --title="GUI Update & Upgrade"
if [[ $? -eq 0 ]]
then
pass=$(zenity --password --width=320 --height=150 --timeout=10 --title="GUI Update & Upgrade")
$pass | sudo apt install zenity -y
else
exit
fi
else
pass=$(zenity --password --width=320 --height=150 --timeout=10 --title="GUI Update & Upgrade") #Storing password into pass variable
(
Expand Down

0 comments on commit 1748348

Please sign in to comment.