Commit fd82cb3e authored by Andrea Scarpino's avatar Andrea Scarpino Committed by Aaron Griffin
Browse files

makechrootpkg: Ensure SRC/PKGDEST are directories

parent 54ae5050
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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