mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-23 05:58:26 +02:00
16 lines
257 B
Bash
Executable File
16 lines
257 B
Bash
Executable File
# $1 = source.properties
|
|
# $2 = NDK version to be checked
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "unknown"
|
|
exit 1
|
|
fi
|
|
|
|
ndkVersion=$(grep -Po 'Pkg.Revision = (\d+)' "$1" | grep -Po '\d+')
|
|
|
|
if [ "$ndkVersion" -ge "$2" ]; then
|
|
echo "yes"
|
|
else
|
|
echo "no"
|
|
fi
|