🗃️ Committing everything that changed 🗃️

rootfs/root/docker/setup/04-users.sh
This commit is contained in:
casjay
2024-09-04 15:01:48 -04:00
parent 1b3b6a5122
commit 1633173d1a

View File

@@ -60,8 +60,8 @@ if [ -z "$(command -v yay 2>/dev/null)" ]; then
[ -n "$(type -P git)" ] && git config --global init.defaultBranch main
chmod -R 777 "$AUR_BUILD_DIR"
git clone --depth 1 "https://aur.archlinux.org/yay-bin" "." && rm -Rf ".git"
sudo -u "$AUR_USER" makepkg -sri --needed --noconfirm -si
sudo -u "$AUR_USER" yay --afterclean --removemake --save && pacman -Qtdq | xargs -r pacman --noconfirm -Rcns || exit 1
sudo -u "$AUR_USER" makepkg -sri --needed --noconfirm -si || exit 1
sudo -u "$AUR_USER" yay --afterclean --removemake --save && pacman -Qtdq | xargs -r pacman --noconfirm -Rcns
[ -d "$AUR_BUILD_DIR" ] && cd && rm -Rf "${AUR_BUILD_DIR:?}"/* "$AUR_HOME/.cache"/*
else
exit 1