Feat: Führt Teile des Skripts nicht als root aus.

This commit is contained in:
DragonSlayer_14 2025-03-26 12:12:03 +01:00
parent 1a0a22569f
commit 9bce359357

View File

@ -34,10 +34,10 @@ if [[ "$answer" == "j" ]] || [[ "$answer" == "y" ]]; then
# Installiere yay
cd $AUR_CODE_DIR
git clone https://aur.archlinux.org/yay.git
sudo -u USER_NAME git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -sic --noconfirm || { echo "❌ Fehler beim Erstellen von adcli"; exit 1; }
git clean -dfx
sudo -u USER_NAME makepkg -sic --noconfirm || { echo "❌ Fehler beim Erstellen von adcli"; exit 1; }
sudo -u USER_NAME git clean -dfx
cd $CURRENT_DIR
fi