diff --git a/scripts/lint-packages.sh b/scripts/lint-packages.sh index 47cf53624..6265ba6ad 100755 --- a/scripts/lint-packages.sh +++ b/scripts/lint-packages.sh @@ -168,7 +168,11 @@ lint_package() { echo -n "TERMUX_PKG_VERSION: " if [ -n "$TERMUX_PKG_VERSION" ]; then - echo "PASS" + if grep -qiP '^[0-9][0-9a-z+\-\.]*' <<< "$TERMUX_PKG_VERSION"; then + echo "PASS" + else + echo "INVALID (contains characters that are not allowed)" + fi else echo "NOT SET" pkg_lint_error=true