From a2132bc899d5a3780ca0bb4caff289b70c954c14 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Mon, 28 Jun 2010 08:49:56 +0200 Subject: read {SRC, PKG}DEST from user makepkg.conf Signed-off-by: Pierre Schmitz --- makechrootpkg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index 01cb3a9..b54ad81 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -134,8 +134,10 @@ if [ "$REPACK" != "1" ]; then fi # Get SRC/PKGDEST from makepkg.conf -SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2) -PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2) +SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2) +[ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2) +PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2) +[ -z ${PKGDEST} ] && PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2) [ -d "$copydir/pkgdest" ] || mkdir "$copydir/pkgdest" if ! grep 'PKGDEST=/pkgdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then -- cgit v1.2.3-70-g09d2