Fall back to default if CacheDir is not set

This commit is contained in:
Pierre Schmitz 2010-02-12 10:14:04 +01:00
parent c22a6014d7
commit 9e14e8691d
1 changed files with 1 additions and 1 deletions

View File

@ -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}")