Skip to content

Excess "fi" in main_menu.sh Prevents use of Main Menu #2221

@marshallwp

Description

@marshallwp

Steps To Reproduce

  1. Run sudo bash /var/scripts/menu.sh
  2. Select Any Option.

Expected Result

Child menus should open.

Actual Result

Running the main menu script...
Testing if network is OK...
Checking connection...
/var/scripts/main_menu.sh: line 67: syntax error near unexpected token else' /var/scripts/main_menu.sh: line 67: else'

Screenshots, Videos, or Pastebins

No response

Additional Context

Commit f235312 introduced this bug by adding an extra "fi" on line 60 without deleting the one on line 63. This causes the parent if statement to 'finish' earlier than expected, causing the error.

Build Version

23.0.1

Environment

By downloading the VM

Environment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions