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 is installed"
15 echo "package $1 missing"
22 echo "processing package $i"
23 checkpackage "$i" && continue
24 if ! imenu -c "the extra package $i is required. Download now?"; then
25 echo "package will not be installed"
28 INSTALLPACKAGES="true"
29 if ! checkinternet; then
30 imenu -e "internet is required"
35 if [ -n "$INSTALLPACKAGES" ]
37 echo "running command: yay -S --needed --noconfirm $@; sleep 2; exit"
38 st -e "bash" -c "yay -S --needed --noconfirm $@; sleep 2; exit"
44 checkpackage "$i" || exit 1