Reverse conditional to skip empty lines

This commit is contained in:
John Davis
2024-01-30 22:03:47 -05:00
parent adf175fdc2
commit c1081c3289
+14 -13
View File
@@ -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