diff options
author | Andrea Scarpino <andrea@archlinux.org> | 2009-10-06 18:22:49 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-10-06 18:22:49 +0200 |
commit | fd82cb3eb7a8968f11b94dedd4817eade15241d6 (patch) | |
tree | 933960d7095792171a5d6d1e70b7d1a0caf19848 | |
parent | 54ae50500ba6c40941a7bbc39df960b704010ca1 (diff) | |
download | devtools-fd82cb3eb7a8968f11b94dedd4817eade15241d6.tar.gz devtools-fd82cb3eb7a8968f11b94dedd4817eade15241d6.tar.xz |
makechrootpkg: Ensure SRC/PKGDEST are directories
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | makechrootpkg | 4 |
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 |