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
|
||||
1) interactive_create_template ;;
|
||||
2) interactive_deploy_vm ;;
|
||||
3) list_templates; read -p "Press Enter to continue..."; interactive_main_menu ;;
|
||||
4) list_os_options; read -p "Press Enter to continue..."; interactive_main_menu ;;
|
||||
3)
|
||||
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 ;;
|
||||
*) exit 0 ;;
|
||||
esac
|
||||
@ -183,7 +191,11 @@ interactive_create_template() {
|
||||
echo ""
|
||||
|
||||
# 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
|
||||
local input_vmid
|
||||
@ -241,7 +253,11 @@ interactive_deploy_vm() {
|
||||
echo ""
|
||||
|
||||
# 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
|
||||
local template_name="${TEMPLATE_PREFIX}-${OS_KEY}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user