mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2024-11-28 10:18:46 -05:00
Update bar script
This commit is contained in:
parent
1a5e101547
commit
bdbf8c8835
@ -1,2 +1,2 @@
|
||||
LastUsed=1692530530
|
||||
Message=' Fully Updated'
|
||||
LastUsed=1692531430
|
||||
Message='Fully Updated'
|
||||
|
@ -10,11 +10,11 @@ get_updates() {
|
||||
icon=" "
|
||||
|
||||
if [ -z "$updates" ]; then
|
||||
updatecount=" Fully Updated"
|
||||
updatecount="Fully Updated"
|
||||
elif [ "$updates" -ge "1" ]; then
|
||||
updatecount=" $updates Update"
|
||||
updatecount="$updates Update"
|
||||
else
|
||||
updatecount=" $updates Updates"
|
||||
updatecount="$updates Updates"
|
||||
fi
|
||||
[[ -f $configFile ]] && . $configFile
|
||||
if [[ -z "$LastUsed" ]] || [[ -z "$Message" ]]; then
|
||||
@ -27,7 +27,7 @@ get_updates() {
|
||||
newtime=$(expr $timestamp + 900)
|
||||
echo -e "LastUsed=${newtime}\nMessage='${updatecount}'" >$configFile
|
||||
else
|
||||
updatecount="$Message"
|
||||
updatecount=" $Message"
|
||||
printf " %s %s \n" "^c$Foreground^^b$Red^$icon" "^c$Foreground^^b$Red_Bright^$updatecount"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user