feat: display klipper repo in main menu

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-26 20:23:17 +02:00
parent 8f2cf3b9a1
commit 1e57aa5d24
8 changed files with 78 additions and 49 deletions

View File

@@ -376,12 +376,12 @@ function get_klipper_status(){
[ -e "${data}" ] && filecount=$(("${filecount}" + 1))
done
if [ "${filecount}" == "${#data_arr[*]}" ]; then
status="$(printf "${green}Installed: %-5s${white}" "${sf_count}")"
elif [ "${filecount}" == 0 ]; then
status="${red}Not installed!${white} "
if (( filecount == ${#data_arr[*]})); then
status="Installed: ${sf_count}"
elif ((filecount == 0)); then
status="Not installed!"
else
status="${yellow}Incomplete!${white} "
status="Incomplete!"
fi
echo "${status}"
}