diff --git a/packages/build_packages.sh b/packages/build_packages.sh index 249b9143df5c..5b309c68ff2c 100755 --- a/packages/build_packages.sh +++ b/packages/build_packages.sh @@ -10,14 +10,17 @@ cd "$(dirname "$0")" # ensure ordered by dependency dag while read -r package_dir; do - printf "\n========= RELEASING PACKAGE ${package_dir} =========\n\n" - - cd "$package_dir" - - make clean - make commit-version - make dist - make new-version - - cd .. + if [ -n "$package_dir" ] + then + printf "\n========= RELEASING PACKAGE %s =========\n\n" "$package_dir" + + cd "$package_dir" + + make clean + make commit-version + make dist + make new-version + + cd .. + fi done < packages_by_dep_dag.txt