🗃️ Committing everything that changed 🗃️

rootfs/root/docker/setup/04-users.sh
This commit is contained in:
casjay 2024-09-04 15:08:17 -04:00
parent 1633173d1a
commit 657a4536ae
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

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