refactor: replace ${default} with ${white}

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-02 23:34:31 +02:00
parent 9122b50367
commit ea6a380e0f
19 changed files with 80 additions and 81 deletions

View File

@@ -8,32 +8,32 @@ update_all(){
top_border
echo -e "| The following installations will be updated: |"
if [ "$KLIPPER_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● Klipper${default} |"
echo -e "| ${cyan}● Klipper${white} |"
fi
if [ "$MOONRAKER_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● Moonraker${default} |"
echo -e "| ${cyan}● Moonraker${white} |"
fi
if [ "$MAINSAIL_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● Mainsail${default} |"
echo -e "| ${cyan}● Mainsail${white} |"
fi
if [ "$FLUIDD_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● Fluidd${default} |"
echo -e "| ${cyan}● Fluidd${white} |"
fi
if [ "$KLIPPERSCREEN_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● KlipperScreen${default} |"
echo -e "| ${cyan}● KlipperScreen${white} |"
fi
if [ "$PGC_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● PrettyGCode for Klipper${default} |"
echo -e "| ${cyan}● PrettyGCode for Klipper${white} |"
fi
if [ "$MOONRAKER_TELEGRAM_BOT_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● MoonrakerTelegramBot${default} |"
echo -e "| ${cyan}● MoonrakerTelegramBot${white} |"
fi
if [ "$SYS_UPDATE_AVAIL" = "true" ]; then
echo -e "| ${cyan}● System${default} |"
echo -e "| ${cyan}● System${white} |"
fi
bottom_border
if [ "${#update_arr[@]}" != "0" ]; then
read -p "${cyan}###### Do you want to proceed? (Y/n):${default} " yn
read -p "${cyan}###### Do you want to proceed? (Y/n):${white} " yn
case "$yn" in
Y|y|Yes|yes|"")
for update in ${update_arr[@]}