4242 if [[ $? -ne 0 ]]
4343 then
4444 bell_sound
45- pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" --auto-kill )
45+ pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" )
4646 bell_sound
4747 $pass | sudo apt install zenity -y > error.txt
4848
8585 echo " # Removing..."
8686 echo " $pass " | sudo -S apt-get autoremove -y 1>> success.txt 2>> error.txt
8787
88- echo 100
88+ echo 99
8989 echo " # All Done!"
90+ sleep 1
9091
91- ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --auto-close --auto-kill --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
92+ ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --auto-close\
93+ --auto-kill --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
9294 bell_sound
9395
9496
101103else
102104 bell_sound
103105 zenity --info --text=" The Update and Upgrade of packages runs successfully!\n There is no Error!" --width=320 --height=150 \
104- --timeout=0.5 --title=" GUI Update & Upgrade"
106+ --timeout=1 --title=" GUI Update & Upgrade"
105107fi
106108
107109rm -r error.txt
@@ -115,11 +117,22 @@ zenity --question --text="Do you like to security check in your machine?" --widt
115117 rkhunter --version
116118 if [[ $? -eq 0 ]]
117119 then
120+ ( echo 0
121+ echo " # Security Check [1] ... "
122+ echo " $pass " | sudo -S rkhunter --sk --propupd
123+
124+
125+ echo 10
126+ echo " # Security Check [2] ... "
127+ echo " $pass " | sudo -S rkhunter --sk -c
128+
129+ echo 99
130+ echo " # Security check successfully done!"
131+ sleep 1
132+
133+ ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --pulsate --auto-close --auto-kill \
134+ --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
118135
119- echo " $pass " | sudo -S rkhunter --sk --propupd | zenity --progress --pulsate --text=" Security checking..." \
120- --width=320 --height=150 --title=" GUI UPDATE & Upgrade" --auto-close --auto-kill --time-remaining
121- echo " $pass " | sudo -S rkhunter --sk -c | zenity --progress --pulsate --text=" Security checking..." \
122- --width=320 --height=150 --title=" GUI UPDATE & Upgrade" --auto-close --auto-kill --time-remaining
123136 touch temp
124137 echo -e " The rkhunter security risks.\n" >> temp
125138 now=$( date +%d%m%Y%r)
0 commit comments