Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/makechrootpkg
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-xmakechrootpkg6
1 files changed, 4 insertions, 2 deletions
diff --git a/makechrootpkg b/makechrootpkg
index 79dc517..4ff69b0 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -133,9 +133,11 @@ if [ "$REPACK" != "1" ]; then
fi
# Get SRC/PKGDEST from makepkg.conf
-SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
+if [ -f ~/.makepkg.conf ]; then
+ SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
+ PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
+fi
[ -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"