Skip to content

Commit 05f57b5

Browse files
committed
- Added Update Notification Icon if there is a new update
1 parent a42e77b commit 05f57b5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ help(){
329329
echo " tweaks | Tweaks Page"
330330
echo " info | Info Page"
331331
echo " settings| Settings Page"
332-
echo " update | Check and Update Hakku"
332+
printf " update | Check and Update Hakku$noti\n"
333333
echo ""
334334
echo "press q to go back"
335335
echo ""

update_f.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ update(){
4242
echo ""
4343
printf "${NC}${normal}"
4444
echo ""
45-
echo " Updates"
45+
printf " Updates$noti\n"
4646
echo " -------"
4747
echo ""
4848
echo ""
@@ -124,12 +124,13 @@ check(){
124124
echo ""
125125
if [ $update = "v2.0.1-beta" ]; then
126126
updating="No new updates"
127-
echo " No new updates"
127+
printf "${GREEN}${bold} No new updates${NC}${normal}\n"
128+
noti=""
128129
else
129130
updating="New updates found: ${update}"
130131
dl="press d to download Hakku ${update}"
131-
echo " New updates found: ${update}"
132-
noti="${RED}${bold}1${NC}${normal}"
132+
printf "${RED}${bold} New updates found: ${update}${NC}${normal}\n"
133+
noti="${RED}${bold}[1]${NC}${normal}\n"
133134
fi
134135
echo ""
135136
echo ""

0 commit comments

Comments
 (0)