From 9e14e8691d6b60d82ab553252a79cc5e61e2d40d Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 12 Feb 2010 10:14:04 +0100 Subject: Fall back to default if CacheDir is not set --- mkarchroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkarchroot') 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}") -- cgit v1.2.3-70-g09d2