Any comments on this?Like there is a way to get rid of all the if-statements or a better way to # check model and build (which actually just prints the info out, so the comment may be a bit confusing)feel free to tell me what you think.  MENU_MAIN() {       clear                                                                                                                                   PRINT_BANNER_S    PRINT_MAIN_MENU    # check model and build    while read -r line; do        [[ $line =~ ^(ro.product.model=) ]] && r=${line#*${BASH_REMATCH[1]}}$' / Build: '$r        [[ $line =~ ^(ro.build.version.incremental=) ]] && r=${line#*${BASH_REMATCH[1]}}    done < $ACTIVE_DB/rom/system/build.prop    # hu display    echo  -> $ACTIVE_DB (Model: $r )    echo -n db  :     if CHECK_DB ; then        echo  [YES]    else        echo  [NO]    fi      echo -n rom :     if CHECK_SYS ; then        if CHECK_SYS_NEMPTY ; then             echo -n  [SYS]          fi    else        echo -n  [NO SYS]      fi    if CHECK_DATA; then        if CHECK_DATA_NEMPTY  ; then             echo [DATA]        fi    else        echo [NO DATA]    fi    # menu options    if CHECK_DB ; then        PRINT_LINE3    else        PRINT_LINE3        echo pre      - prepare        PRINT_LINE    fi        if CHECK_DB ; then                                                                                                                echo find     - find deps                                                                                                           fi                                                                                                                                      if CHECK_DB ; then                                                                                                                 if CHECK_DB_SIZE ; then                                                                                                       PRINT_LINE3            echo obj      - objects                                                                                                          echo sym      - symbols                                                                                                               echo dep      - dependencies             echo pro      - providings            PRINT_LINE            echo rm       - what else can be removed                                                                                              PRINT_LINE3                                                                                                                         else                                                                                                                                        PRINT_LINE3                                                                                                                             echo no content in database                                                                                                           PRINT_LINE3                                                                                                                         fi                                                                                                                                  else                                                                                                                                        PRINT_LINE3                                                                                                                          fi    if CHECK_LOG_NEMPTY ; then        echo log      - view logs        if CHECK_DB && CHECK_DB_SIZE ; then                                                                                                                       PRINT_LINE            echo re       - reset db            PRINT_LINE3         else            PRINT_LINE3                                                                                                                                                                                                                                                                       fi    fi    echo man      - view manual    echo set      - settings                                                                                          echo x        - exit                                                                                                                  PRINT_LINE3                                                                                                                                                                                                                                                                   read -p CHOICE:  CHOICE                                                                                                                   case $CHOICE in                                                                                                                           pre) AUTO_PREP ;;                                                                                                             mp) PAGE_PREP ;;            f|find) CHECK_ALL ;;                                                                                                        mf) PAGE_FIND ;;                                                                                                       la) ALL_LIST ;;            pa) ALL_PRINT ;;            o|obj) PAGE_OBJ ;;                                                                                                            s|sym) PAGE_SYM ;;                                                                                                          d|dep) PAGE_DEP ;;            p|pro) PAGE_PROV ;;            rm) PAGE_RM ;;                                                                                                                l|log) PAGE_LOG ;;              m|man) PAGE_MAN ;;            re) echo todo ;;            set) PAGE_SETTINGS ;;            x) exit 0                                                                                                                         esac                                                                                                                            } This is the output_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________/\/\__________________________/\/\/\/\/\/\__/\/\/\/\/\____/\/\/\/\/\/\__/\/\/\/\/\/\_________________________________________/\/\____/\/\/\____/\/\/\/\________/\/\______/\/\____/\/\__/\/\__________/\/\_____________________________________________/\/\/\/\__/\/\/\/\/\__/\/\__/\/\______/\/\______/\/\/\/\/\____/\/\/\/\/\____/\/\/\/\/\_____________________________________/\/\__/\/\__/\/\________/\/\/\/\________/\/\______/\/\__/\/\____/\/\__________/\/\____________________________________________/\/\/\/\____/\/\/\/\___/\/\____________/\/\______/\/\____/\/\__/\/\/\/\/\/\__/\/\/\/\/\/\___________________________________________________________/\/\_____________________________________________________________________________________________________________________________________________________________________________________________________________ -----------------------------------------------------------------------------------------------------------------------------                                                  main menu -----------------------------------------------------------------------------------------------------------------------------  -> DB_45763 (Model: SM-G900F / Build: G900FXXU1BOK6 ) db  :  [YES] rom :  [SYS]  [NO DATA] +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ find     - find deps +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ obj      - objects sym      - symbols dep      - dependencies pro      - providings ----------------------------------------------------------------------------------------------------------------------------- rm       - what else can be removed +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ log      - view logs ----------------------------------------------------------------------------------------------------------------------------- re       - reset db +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ man      - view manual set      - settings x        - exit +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ CHOICE: 
Bash script menu
bash;console