properly fix issue with ame being ran as root

pull/3/head
amy 3 years ago
parent ac0e9eec2f
commit 586909b66b
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -444,13 +444,13 @@ if [[ "$MP" != "n" ]]; then
prompt "Write package names" prompt "Write package names"
PKGNS="$response" PKGNS="$response"
inf "Installing: $PKGNS" inf "Installing: $PKGNS"
arch-chroot /mnt su - ${UN} ame -S ${PKGNS} arch-chroot /mnt su - ${UN} -c "ame -S ${PKGNS}"
else else
prompt "URL to package list" prompt "URL to package list"
SRC="$response" SRC="$response"
PKGS="$(curl ${SRC})" PKGS="$(curl ${SRC})"
for PKG in PKGS; do for PKG in PKGS; do
arch-chroot /mnt su - ${UN} ame -S ${PKG} arch-chroot /mnt su - ${UN} -c "ame -S ${PKG}"
done done
fi fi
fi fi

Loading…
Cancel
Save