From fd82cb3eb7a8968f11b94dedd4817eade15241d6 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Tue, 6 Oct 2009 09:22:49 -0700 Subject: makechrootpkg: Ensure SRC/PKGDEST are directories Signed-off-by: Aaron Griffin --- makechrootpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makechrootpkg') diff --git a/makechrootpkg b/makechrootpkg index d56358c..5410cda 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -236,7 +236,7 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then popd >/dev/null fi - if [ -n "$PKGDEST" ]; then + if [ -d "$PKGDEST" ]; then echo "Moving completed ${_pkgname%${PKGEXT}} package file to ${PKGDEST}" mv "$pkgfile" "${PKGDEST}" else @@ -247,7 +247,7 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then for f in "${chrootdir}"/union/srcdest/*; do [ -e "$f" ] || continue - if [ -n "$SRCDEST" ]; then + if [ -d "$SRCDEST" ]; then echo "Moving downloaded source file $(basename $f) to ${SRCDEST}" mv "$f" "${SRCDEST}" else -- cgit v1.2.3-24-g4f1b