Add check if selectedpkgs files exist

This commit is contained in:
RealStickman 2022-07-20 11:21:42 +02:00
parent 89ab2aef9f
commit 1fad8c59e1

View File

@ -323,14 +323,18 @@ echo Installed wine
echo Installing selected programs
# install selected packages
if [ -f "$setupdir/selectedpkgs.txt" ]; then
echo Installing from official repository
# NOTE || true to continue if no packages have been selected
sudo pacman -S --needed - < "$setupdir/selectedpkgs.txt" || true
fi
# install selected aur packages
if [ -f "$setupdir/aurselectedpkgs.txt" ]; then
echo Installing from AUR
# NOTE || true to continue if no packages have been selected
paru -S --needed - < "$setupdir/aurselectedpkgs.txt" || true
fi
: '
if [ $in_vmware15 -eq 1 ]; then