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
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