check-updates.sh: switch to for loop

'while' loop stops for unknown reason after 'git commit'
This commit is contained in:
Leonid Pliushch 2020-12-18 01:09:28 +02:00
parent 4399a39795
commit 5d01d72a3a
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -16,7 +16,7 @@ if [ -z "${GITHUB_API_TOKEN-}" ]; then
fi
if [ -f "${BASEDIR}/github-projects.txt" ]; then
while read -r line; do
for line in $(grep -P '^[a-z0-9]' "${BASEDIR}/github-projects.txt"); do
unset package project version_regexp
package=$(echo "$line" | cut -d'|' -f1)
project=$(echo "$line" | cut -d'|' -f2)
@ -66,5 +66,5 @@ if [ -f "${BASEDIR}/github-projects.txt" ]; then
fi
fi
fi
done < <(grep -P '^[a-z0-9]' "${BASEDIR}/github-projects.txt")
done
fi