summarylogtreecommitdiffstats
path: root/pp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pp.sh')
-rw-r--r--[-rwxr-xr-x]pp.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp.sh b/pp.sh
index 3da11aa3c8c3..ea2634d1e7d4 100755..100644
--- a/pp.sh
+++ b/pp.sh
@@ -1,8 +1,8 @@
#!/bin/bash
-maxMirrorForDownload=4
-
arch=$(uname -m)
+maxMirrorForDownload=4
+pacmanCahceDir="$(pacman-conf CacheDir)"
if [[ $UID -ne 0 ]]; then
sudo -p 'Restarting as root, password: ' bash $0 "$@"
@@ -45,7 +45,7 @@ for pkgNameAndVersion in "${packageList[@]}"; do
fi
done
- aria2c -c $downloadList -d /var/cache/pacman/pkg/ &> /dev/null &
+ aria2c -c $downloadList -d "pacmanCahceDir" &> /dev/null &
running=$(jobs |wc -l)
echo ">>> $(date +%T) | Downloading $pkgName, $running/$maxParallelDownload download"