Skip to content

Commit

Permalink
Reverse conditional to skip empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 31, 2024
1 parent adf175f commit c1081c3
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions packages/build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ cd "$(dirname "$0")"

# ensure ordered by dependency dag
while read -r package_dir; do
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
if [ -z "$package_dir" ]; then
# Skip empty lines
continue
fi
printf "\n========= RELEASING PACKAGE %s =========\n\n" "$package_dir"

cd "$package_dir"

make clean
make commit-version
make dist
make new-version

cd ..
done < packages_by_dep_dag.txt

0 comments on commit c1081c3

Please sign in to comment.