function install { echo "What package would you like to install?" read PACKAGE if [ "$PACKAGE" = "" ]; then echo "no package specifed" echo "Press enter to continue" read else echo "Installing package now" echo pacman -S $PACKAGE if [ "$?" != "0" ]; then clear echo "Error: Package Not Found" install fi echo echo "Package Installed" echo "Press enter to continue" read fi }