summaryrefslogtreecommitdiff
path: root/fullpkg-ng
diff options
context:
space:
mode:
Diffstat (limited to 'fullpkg-ng')
-rwxr-xr-xfullpkg-ng6
1 files changed, 3 insertions, 3 deletions
diff --git a/fullpkg-ng b/fullpkg-ng
index 0c74b34..4ab4ab0 100755
--- a/fullpkg-ng
+++ b/fullpkg-ng
@@ -178,9 +178,9 @@ function find_deps {
function _pkg_build () {
pushd ${build_dir} > /dev/null
- build_packages=$(sort -gr $buildorder | cut -d: -f2)
- while [ ${#build_packages[@]} -gt 1 ]; do
- build_packages=$(sort -gr $buildorder | cut -d: -f2)
+ build_packages=($(sort -gr $buildorder | cut -d: -f2))
+ while [ ${#build_packages[@]} -ge 1 ]; do
+ build_packages=($(sort -gr $buildorder | cut -d: -f2))
pushd $build_dir/${build_packages[0]} > /dev/null
source PKGBUILD
msg2 "${pkgbase:-${pkgname[0]}} $pkgver-$pkgrel"