Indent shell functions for consistency
Updated all function bodies in debian-13-vm.sh and vm-manager.sh to use consistent indentation. This improves readability and maintainability of the scripts without changing their logic or behavior.
This commit is contained in:
parent
793c5fafe3
commit
3971eb49c7
@ -155,8 +155,16 @@ interactive_main_menu() {
|
|||||||
case $choice in
|
case $choice in
|
||||||
1) interactive_create_template ;;
|
1) interactive_create_template ;;
|
||||||
2) interactive_deploy_vm ;;
|
2) interactive_deploy_vm ;;
|
||||||
3) list_templates; read -p "Press Enter to continue..."; interactive_main_menu ;;
|
3)
|
||||||
4) list_os_options; read -p "Press Enter to continue..."; interactive_main_menu ;;
|
list_templates
|
||||||
|
read -p "Press Enter to continue..."
|
||||||
|
interactive_main_menu
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
list_os_options
|
||||||
|
read -p "Press Enter to continue..."
|
||||||
|
interactive_main_menu
|
||||||
|
;;
|
||||||
5) exit 0 ;;
|
5) exit 0 ;;
|
||||||
*) exit 0 ;;
|
*) exit 0 ;;
|
||||||
esac
|
esac
|
||||||
@ -183,7 +191,11 @@ interactive_create_template() {
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Select OS
|
# Select OS
|
||||||
interactive_select_os || { warn "No OS selected"; interactive_main_menu; return; }
|
interactive_select_os || {
|
||||||
|
warn "No OS selected"
|
||||||
|
interactive_main_menu
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
# VM ID
|
# VM ID
|
||||||
local input_vmid
|
local input_vmid
|
||||||
@ -241,7 +253,11 @@ interactive_deploy_vm() {
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Select OS (template must exist)
|
# Select OS (template must exist)
|
||||||
interactive_select_os || { warn "No OS selected"; interactive_main_menu; return; }
|
interactive_select_os || {
|
||||||
|
warn "No OS selected"
|
||||||
|
interactive_main_menu
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
# Check if template exists
|
# Check if template exists
|
||||||
local template_name="${TEMPLATE_PREFIX}-${OS_KEY}"
|
local template_name="${TEMPLATE_PREFIX}-${OS_KEY}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user