diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-02-12 10:14:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-02-12 10:14:04 +0100 |
commit | 9e14e8691d6b60d82ab553252a79cc5e61e2d40d (patch) | |
tree | ff806ed6732e0767e4d0f5c84fc9dca9a49e6e9a | |
parent | c22a6014d7de13024ae929c509b41998977e7055 (diff) | |
download | devtools32-9e14e8691d6b60d82ab553252a79cc5e61e2d40d.tar.xz |
Fall back to default if CacheDir is not set
-rwxr-xr-x | mkarchroot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}") |