We need to read first then check if empty (#5)

This commit is contained in:
Igor Pečovnik
2023-03-20 14:32:24 +01:00
committed by GitHub
parent 090a06654c
commit 5c4126a366

View File

@@ -40,10 +40,10 @@ jobs:
# Make a list of valid pairs from our config
echo 'JSON_CONTENT<<EOF' >> $GITHUB_OUTPUT
for BRANCH in legacy current midstream edge; do
FILES=$(cat os/targets/*.conf | grep $BRANCH | grep -v "^$" | grep -v "^#" | sed -n $LINE'p' | cut -d " " -f1 | uniq)
if [ -z "${FILES}" ]; then
continue
fi
FILES=$(cat os/targets/*.conf | grep $BRANCH | grep -v "^$" | grep -v "^#" | sed -n $LINE'p' | cut -d " " -f1 | uniq)
fi
while IFS= read -r line; do
BOARDFAMILY=$(cat build/config/boards/$line.* | grep BOARDFAMILY | cut -d'"' -f2)
BOARD=$line