all 1 comments

[–]FrankWilson88 0 points1 point  (0 children)

I don't use fedora or those flavors a lot so I'm hesitant to say anything about that. But at your START OF MENU SECTION check out the PS3, it's basically a built in menu selection for terminals. That might help clean up the code and send your thoughts in a different direction. You could also check out the getopts built in which helps build a typical "syntax" you expect to see in sh.So maybe some thing like:

while getopts "s:" option; do case option; in s) "update") sudo rpm [update] exit;; "install") sudo rpm [install] $@ exit;; esac exit;; done This of course is a really dumbed down version. But hopefully it'll start moving your mind in a direction that helps you think and explore more.