3 # program that prompts the user to install a package if it is not already installed
6 echo "no package to check"
11 if command -v "$1" || pacman -Qi "$1"; then
12 echo "package $1 found"
20 if ! checkinternet; then
21 imenu -e "internet is required"
25 if ! imenu -c "the extra package $1 is required. Download now?"; then
26 echo "package will not be installed"
30 st -e "bash" -c "sudo pacman -S --needed --noconfirm $1 && exit"
32 checkpackage "$1" || exit 1