diff --git a/dist/pacman.sh b/dist/pacman.sh index 28cb1c9..6e9af4a 100755 --- a/dist/pacman.sh +++ b/dist/pacman.sh @@ -33,7 +33,6 @@ else if [ "$EUID" -eq 0 ]; then echo "Building paru as root is not allowed. Creating a temporary user for building..." TEMP_USER="builder" - pacman -S --noconfirm sudo useradd -m "$TEMP_USER" # add user to sudoers with no password echo "$TEMP_USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers @@ -72,6 +71,7 @@ else mapfile -t paru_packages < "$PARU_PACKAGE_FILE" echo "Installing AUR packages using paru as user $BUILD_USER..." yes | su - "$BUILD_USER" -c "paru -S --noconfirm ${paru_packages[*]}" + yes | su - "$BUILD_USER" -c "yes | sdkmanager --licenses" fi echo "All packages installed successfully."