From ace93ae26eb0f846d985cee5ced016386d3313f7 Mon Sep 17 00:00:00 2001 From: Matt C Date: Sun, 12 Sep 2021 21:26:26 -0400 Subject: [PATCH] add ability to mass-install more packages via a plaintext url --- continue.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/continue.sh b/continue.sh index 1224830..b8b6061 100755 --- a/continue.sh +++ b/continue.sh @@ -234,10 +234,18 @@ fi prompt "Would you like to add more packages? (Y/n)" MP="$response" if [[ "$MP" != "n" ]]; then - prompt "Write package names" - PKGNS="$response" - inf "Installing: $PKGNS" - pacman -Sy --quiet --noconfirm ${PKGNS} + prompt "Would you like to use a URL to a package list? (Y/n)" + OL="$response" + if [[ "$OL" == "n" ]]; then + prompt "Write package names" + PKGNS="$response" + inf "Installing: $PKGNS" + pacman -Sy --quiet --noconfirm ${PKGNS} + else + prompt "URL to package list" + SRC="$response" + pacman -Sy --quiet --noconfirm $(curl ${SRC}) + fi fi inf "Installation complete"