diff --git a/scripts/gate-ownership.sh b/scripts/gate-ownership.sh index b03d94b..e9c68da 100755 --- a/scripts/gate-ownership.sh +++ b/scripts/gate-ownership.sh @@ -22,9 +22,10 @@ esac # (pkgprefix)-Zeilen aus der STATE.md-Ownership-Tabelle ziehen. pairs=$(awk -F'|' ' - /Datei-Ownership/{f=1; next} - f && /^[[:space:]]*$/{f=0} + /Datei-Ownership/{f=1; started=0; next} + f && started && $0 !~ /^\|/ {f=0} # erst NACH Tabellenbeginn abbrechen f && /^\|/{ + started=1; pkg=$2; paths=$3; gsub(/^[ \t]+|[ \t]+$/,"",pkg); if(pkg=="" || pkg=="Paket" || pkg ~ /---/ || pkg ~ /…/ || pkg ~ /^_/) next;