mirror of
https://github.com/dockersrc/archlinux
synced 2025-01-18 06:34:21 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/root/docker/setup/04-users.sh
This commit is contained in:
parent
e2e8785ac0
commit
2a1bb0d306
@ -53,8 +53,9 @@ fi
|
|||||||
if [ -z "$(command -v yay 2>/dev/null)" ]; then
|
if [ -z "$(command -v yay 2>/dev/null)" ]; then
|
||||||
if cd "$AUR_BUILD_DIR/yay"; then
|
if cd "$AUR_BUILD_DIR/yay"; then
|
||||||
[ -n "$(type -P git)" ] && git config --global init.defaultBranch main
|
[ -n "$(type -P git)" ] && git config --global init.defaultBranch main
|
||||||
chmod -Rf 777 "$AUR_BUILD_DIR"
|
chmod -R 777 "$AUR_BUILD_DIR"
|
||||||
git clone --depth 1 "https://aur.archlinux.org/yay" "." && sudo -u "$AUR_USER" makepkg --noconfirm -si
|
git clone --depth 1 "https://aur.archlinux.org/yay" "." && rm -Rf ".git"
|
||||||
|
sudo -u "$AUR_USER" makepkg --noconfirm -si
|
||||||
sudo -u "${AUR_USER}" yay --afterclean --removemake --save && pacman -Qtdq | xargs -r pacman --noconfirm -Rcns || exit 1
|
sudo -u "${AUR_USER}" yay --afterclean --removemake --save && pacman -Qtdq | xargs -r pacman --noconfirm -Rcns || exit 1
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user