test for syntax errors

This commit is contained in:
Gerhard Hoffmann 2023-05-25 16:36:54 +02:00
parent 8729683fca
commit 103f66f044

View File

@ -29,10 +29,11 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then
if grep -q . "${OPKG_COMMANDS_FILE}"; then
readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE)
for opkg_c in "${opkg_commands[@]}"; do
test -z $opkg_c && continue;
test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue
echo -n "EXECUTE, $opkg_c, $__date, N/A" | tr -d '\n\r' >> $GIT_UPDATE_LOG 2>&1
echo "" >> $GIT_UPDATE_LOG 2>&1
echo "CC=$opkg_c"
# test -z $opkg_c && continue;
# test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue
# echo -n "EXECUTE, $opkg_c, $__date, N/A" | tr -d '\n\r' >> $GIT_UPDATE_LOG 2>&1
# echo "" >> $GIT_UPDATE_LOG 2>&1
done
fi
else