Skip to content

Commit

Permalink
scripts(lint-packages): remove TERMUX_PKG_API_LEVEL upper limit (term…
Browse files Browse the repository at this point in the history
  • Loading branch information
truboxl authored and nguynkhn committed Oct 16, 2024
1 parent d494241 commit e8389d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lint-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,14 @@ lint_package() {
echo -n "TERMUX_PKG_API_LEVEL: "

if grep -qP '^[1-9][0-9]$' <<< "$TERMUX_PKG_API_LEVEL"; then
if (( TERMUX_PKG_API_LEVEL < 24 || TERMUX_PKG_API_LEVEL > 28 )); then
echo "INVALID (allowed: number in range 24 - 28)"
if (( TERMUX_PKG_API_LEVEL < 24 )); then
echo "INVALID (allowed: number in range >= 24)"
pkg_lint_error=true
else
echo "PASS"
fi
else
echo "INVALID (allowed: number in range 24 - 28)"
echo "INVALID (allowed: number in range >= 24)"
pkg_lint_error=true
fi
fi
Expand Down

0 comments on commit e8389d4

Please sign in to comment.