makechrootpkg: Ensure SRC/PKGDEST are directories
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
54ae50500b
commit
fd82cb3eb7
|
@ -236,7 +236,7 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$PKGDEST" ]; then
|
if [ -d "$PKGDEST" ]; then
|
||||||
echo "Moving completed ${_pkgname%${PKGEXT}} package file to ${PKGDEST}"
|
echo "Moving completed ${_pkgname%${PKGEXT}} package file to ${PKGDEST}"
|
||||||
mv "$pkgfile" "${PKGDEST}"
|
mv "$pkgfile" "${PKGDEST}"
|
||||||
else
|
else
|
||||||
|
@ -247,7 +247,7 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
|
||||||
|
|
||||||
for f in "${chrootdir}"/union/srcdest/*; do
|
for f in "${chrootdir}"/union/srcdest/*; do
|
||||||
[ -e "$f" ] || continue
|
[ -e "$f" ] || continue
|
||||||
if [ -n "$SRCDEST" ]; then
|
if [ -d "$SRCDEST" ]; then
|
||||||
echo "Moving downloaded source file $(basename $f) to ${SRCDEST}"
|
echo "Moving downloaded source file $(basename $f) to ${SRCDEST}"
|
||||||
mv "$f" "${SRCDEST}"
|
mv "$f" "${SRCDEST}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue