index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | makechrootpkg | 6 |
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" |