summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@archlinux.org>2009-10-06 09:22:49 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-10-06 09:22:49 -0700
commitfd82cb3eb7a8968f11b94dedd4817eade15241d6 (patch)
tree933960d7095792171a5d6d1e70b7d1a0caf19848
parent54ae50500ba6c40941a7bbc39df960b704010ca1 (diff)
downloaddevtools32-fd82cb3eb7a8968f11b94dedd4817eade15241d6.tar.xz
makechrootpkg: Ensure SRC/PKGDEST are directories
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xmakechrootpkg4
1 files changed, 2 insertions, 2 deletions
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