summaryrefslogtreecommitdiff
path: root/mkarchroot
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-02-12 10:14:04 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-02-12 10:14:04 +0100
commit9e14e8691d6b60d82ab553252a79cc5e61e2d40d (patch)
treeff806ed6732e0767e4d0f5c84fc9dca9a49e6e9a /mkarchroot
parentc22a6014d7de13024ae929c509b41998977e7055 (diff)
Fall back to default if CacheDir is not set
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}")