bar_updates

This commit is contained in:
The-Repo-Club 2023-08-25 18:30:12 +01:00
parent f67c9240e8
commit f5b9d041ec
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
2 changed files with 1 additions and 2 deletions

View File

@ -1,2 +1,2 @@
LastUsed=1692984119 LastUsed=1692985380
Message='Fully Updated' Message='Fully Updated'

View File

@ -23,7 +23,6 @@ get_updates() {
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
else else
if [[ "$timestamp" -ge "$LastUsed" ]]; then if [[ "$timestamp" -ge "$LastUsed" ]]; then
updatecount=" $Message"
printf "%s %s \n" "^c$Foreground^^b$Purple^ $icon " "^c$Foreground^^b$Purple_Bright^ $updatecount" printf "%s %s \n" "^c$Foreground^^b$Purple^ $icon " "^c$Foreground^^b$Purple_Bright^ $updatecount"
newtime=$(expr $timestamp + 900) newtime=$(expr $timestamp + 900)
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile