Manjaro-Pek / pacli

A simple and interative Bash Frontend for Pacman/Yaourt/Pacaur
GNU General Public License v2.0
44 stars 8 forks source link

Install package improvement & unset pkg in loop #50

Closed natemaia closed 6 years ago

natemaia commented 6 years ago

During option 3 'Install Package' pressing enter immediately will result in an attempted install of nothing which prompts user to enter password and returns this error: error: no targets specified (use -h for help) This is just a small check, if a package wasn't chosen just return to the main menu. This is done instantly without prompting the user, it felt pointless to be at the menu already and have to press enter to use it.

I opted to unset pkg while looping rather than within the case itself, I figured because it was being unset in a few places might as well save a few lines and just do it each loop. Last thing was a bit of whitespace/tab cleanup

Edit Added the error pacman throws when trying to install nothing above