Proper exit code on PKGBUILD check
This commit is contained in:
parent
693c031124
commit
e21233f9a2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user