From 5d01d72a3acb0466d07cc70055f0a5dd9bb306f9 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Fri, 18 Dec 2020 01:09:28 +0200 Subject: [PATCH] check-updates.sh: switch to for loop 'while' loop stops for unknown reason after 'git commit' --- scripts/updates/check-updates.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/updates/check-updates.sh b/scripts/updates/check-updates.sh index b28147336..500f42b14 100755 --- a/scripts/updates/check-updates.sh +++ b/scripts/updates/check-updates.sh @@ -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