summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigs/install-iso/download-repo.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/install-iso/download-repo.sh b/configs/install-iso/download-repo.sh
index b5a09bd..31a3c79 100755
--- a/configs/install-iso/download-repo.sh
+++ b/configs/install-iso/download-repo.sh
@@ -35,10 +35,13 @@ fi
PKGS=$(/usr/bin/pacman -Slq $REPO)
if [ -n "$PKGS" ]; then
+ baseurl=""
for url in $(/usr/bin/pacman -Sp $PKGS | grep '://'); do
+ baseurl="$(dirname "$url")" #save for later
pkgname="$(basename "$url")"
wget -nv "$url" -O "$DEST/$pkgname"
done
+ wget -nv "$baseurl/$REPO.db.tar.gz" -O "$DEST/$REPO.db.tar.gz"
else
echo "No packages to download... what'd you break?"
exit 1