test for syntax errors

This commit is contained in:
Gerhard Hoffmann 2023-05-25 17:03:11 +02:00
parent 97abd39097
commit 72ecd841df

View File

@ -30,7 +30,7 @@ if [ -f $CHECKOUT_HISTORY_FILE ]; then
readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE)
for opkg_c in "${opkg_commands[@]}"; do
# check for empty lines
if [[ -n $opkg_c ]]; then
if [ "$opkg_c" ]; then
echo "CC=$opkg_c"
# check if line is not starting with '#'
if ! grep -qE "^\s*[#]+.*$" <<< "$opkg_c"; then