summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpico.dev <pico.dev@gmail.com>2020-08-14 22:12:15 +0200
committerpico.dev <pico.dev@gmail.com>2020-08-14 22:12:15 +0200
commit677c7b3f471a1a00edb48425a60b5eaf4352211f (patch)
tree8272609cbcfbd29c77857d42e5a820d4bb3bad12
parent8fb5fba85ebe3b07aa5759d21c0c701e2f25894e (diff)
Fix AUR packages install
-rwxr-xr-xalis.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/alis.sh b/alis.sh
index a0e7bbf..9b35af6 100755
--- a/alis.sh
+++ b/alis.sh
@@ -1428,9 +1428,10 @@ function pacman_install() {
function aur_install() {
set +e
IFS=' ' PACKAGES=($1)
+ AUR_COMMAND="$AUR -Syu --noconfirm --needed ${PACKAGES[@]}"
for VARIABLE in {1..5}
do
- arch-chroot /mnt bash -c "echo -e \"$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n\" | su $USER_NAME -c \"$AUR -Syu --noconfirm --needed ${PACKAGES[@]}\""
+ arch-chroot /mnt bash -c "echo -e \"$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n\" | su $USER_NAME -c \"$AUR_COMMAND\""
if [ $? == 0 ]; then
break
else