feat: add Mobileraker (#343)

Co-authored-by: th33xitus <th33xitus@googlemail.com>
This commit is contained in:
Patrick Schmidt
2023-06-17 19:34:26 +02:00
committed by GitHub
parent 345b7b66a3
commit 98866caefa
7 changed files with 275 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
set -e
function update_ui() {
function update_ui() {
top_border
echo -e "| ${green}~~~~~~~~~~~~~~ [ Update Menu ] ~~~~~~~~~~~~~~${white} |"
hr
@@ -33,9 +33,10 @@ function update_ui() {
echo -e "| 7) [Telegram Bot] |$(compare_telegram_bot_versions)|"
echo -e "| 8) [Obico for Klipper]|$(compare_moonraker_obico_versions)|"
echo -e "| 9) [OctoEverywhere] |$(compare_octoeverywhere_versions)|"
echo -e "| 10) [Crowsnest] |$(compare_crowsnest_versions)|"
echo -e "| 10) [Mobileraker] |$(compare_mobileraker_versions)|"
echo -e "| 11) [Crowsnest] |$(compare_crowsnest_versions)|"
echo -e "| |------------------------------|"
echo -e "| 11) [System] | $(check_system_updates) |"
echo -e "| 12) [System] | $(check_system_updates) |"
back_footer
}
@@ -68,8 +69,10 @@ function update_menu() {
9)
do_action "update_octoeverywhere" "update_ui";;
10)
do_action "update_crowsnest" "update_ui";;
do_action "update_mobileraker" "update_ui";;
11)
do_action "update_crowsnest" "update_ui";;
12)
do_action "upgrade_system_packages" "update_ui";;
a)
do_action "update_all" "update_ui";;
@@ -124,6 +127,9 @@ function update_all() {
[[ "${update_arr[*]}" =~ "octoeverywhere" ]] && \
echo -e "| ${cyan}● OctoEverywhere${white} |"
[[ "${update_arr[*]}" =~ "mobileraker" ]] && \
echo -e "| ${cyan}● Mobileraker${white} |"
[[ "${update_arr[*]}" =~ "system" ]] && \
echo -e "| ${cyan}● System${white} |"