Proper exit code on PKGBUILD check

This commit is contained in:
DarkFeather 2023-12-07 13:18:59 -06:00
parent 693c031124
commit e21233f9a2
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296

View File

@ -21,7 +21,7 @@ for file in $files; do
# Enforce each of the lines # Enforce each of the lines
for line in '^# Etymology$' '^# Relevant Files and Software$' '^# Available Clients$' '^# Equivalents or Competition$'; do for line in '^# Etymology$' '^# Relevant Files and Software$' '^# Available Clients$' '^# Equivalents or Competition$'; do
newlinenum="$(grep -nE "$line" "$file" | cut -f 1 -d ':')" newlinenum="$(grep -m 1 -nE "$line" "$file" | cut -f 1 -d ':')"
# Case 1: Missing section # Case 1: Missing section
if [ -z "$newlinenum" ]; then if [ -z "$newlinenum" ]; then