linter: fix detecting invalid versions
This commit is contained in:
parent
f3ce15f951
commit
b048650736
@ -168,10 +168,11 @@ lint_package() {
|
||||
|
||||
echo -n "TERMUX_PKG_VERSION: "
|
||||
if [ -n "$TERMUX_PKG_VERSION" ]; then
|
||||
if grep -qiP '^[0-9][0-9a-z+\-\.]*' <<< "$TERMUX_PKG_VERSION"; then
|
||||
if grep -qiP '^([0-9]+\:)?[0-9][0-9a-z+\-\.]*$' <<< "$TERMUX_PKG_VERSION"; then
|
||||
echo "PASS"
|
||||
else
|
||||
echo "INVALID (contains characters that are not allowed)"
|
||||
pkg_lint_error=true
|
||||
fi
|
||||
else
|
||||
echo "NOT SET"
|
||||
|
Loading…
Reference in New Issue
Block a user