mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
refactor: move $INSTANCE_COUNT into setup function
This commit is contained in:
@@ -66,13 +66,12 @@ moonraker_setup_dialog(){
|
|||||||
warn_msg "Invalid Input!\n"
|
warn_msg "Invalid Input!\n"
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
INSTANCE_COUNT=$count
|
read -p "${cyan}###### Install $count instance(s)? (Y/n):${default} " yn
|
||||||
read -p "${cyan}###### Install $INSTANCE_COUNT instance(s)? (Y/n):${default} " yn
|
|
||||||
case "$yn" in
|
case "$yn" in
|
||||||
Y|y|Yes|yes|"")
|
Y|y|Yes|yes|"")
|
||||||
echo -e "###### > Yes"
|
echo -e "###### > Yes"
|
||||||
status_msg "Installing Moonraker ...\n"
|
status_msg "Installing Moonraker ...\n"
|
||||||
moonraker_setup
|
moonraker_setup "$count"
|
||||||
break;;
|
break;;
|
||||||
N|n|No|no)
|
N|n|No|no)
|
||||||
echo -e "###### > No"
|
echo -e "###### > No"
|
||||||
@@ -87,6 +86,7 @@ moonraker_setup_dialog(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
moonraker_setup(){
|
moonraker_setup(){
|
||||||
|
INSTANCE_COUNT=$1
|
||||||
### checking dependencies
|
### checking dependencies
|
||||||
dep=(wget curl unzip dfu-util virtualenv)
|
dep=(wget curl unzip dfu-util virtualenv)
|
||||||
### additional deps for kiauh compatibility for armbian
|
### additional deps for kiauh compatibility for armbian
|
||||||
|
|||||||
Reference in New Issue
Block a user