summaryrefslogtreecommitdiffstats
path: root/mkarchroot
diff options
context:
space:
mode:
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkarchroot b/mkarchroot
index b44ba92..58f919b 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -13,7 +13,7 @@ RUN=""
NOCOPY="n"
working_dir=""
-cache_dir=$(grep -m 1 '^CacheDir' /etc/pacman.conf | sed 's/CacheDir\s*=\s*//')
+cache_dir=$((grep -m 1 '^CacheDir' /etc/pacman.conf || echo 'CacheDir = /var/cache/pacman/pkg') | sed 's/CacheDir\s*=\s*//')
APPNAME=$(basename "${0}")