Small fix for build-tools directories without numbers

This commit is contained in:
Deve 2020-06-18 23:07:04 +02:00
parent 88f2624624
commit 4ab33fec8c

View File

@ -223,7 +223,7 @@ if [ -z "$BUILD_TOOLS_VER" ]; then
BUILD_TOOLS_DIRS=`ls -1 "$SDK_PATH/build-tools" | sort -V -r`
for DIR in $BUILD_TOOLS_DIRS; do
if [ "$DIR" = `echo $DIR | sed 's/[^0-9,.]//g'` ]; then
if [ "$DIR" = "`echo $DIR | sed 's/[^0-9,.]//g'`" ]; then
BUILD_TOOLS_VER="$DIR"
break
fi