Simplify page alignement check to just check if there is a -p parameter

This commit is contained in:
mfonville
2021-07-09 09:57:11 +02:00
parent 9cd7c6e8a9
commit 57594aca0d
+1 -1
View File
@@ -33,7 +33,7 @@ checktools() {
else
case $command in
zipalign)
if ! zipalign 2>&1 | grep -q -e "page align stored shared object files" -e "page alignment for stored shared object files" -e "page-align uncompressed .so files"; then
if ! zipalign 2>&1 | grep -q -e "-p: "; then # check for page alignment support
echo 'zipalign is outdated. Install a more recent version from the Android SDK and findable in sh $PATH.' >&2
missing="$missing $command"
fi;;