Commits

Ivan Vučica committed de445d3

Fixed success check path for fetching Android SDK.

Comments (0)

Files changed (1)

phases/06-fetch-android-sdk.sh

 else
 	# try to fetch just newest platform sdk
 	export NEWEST_API=$(./android list sdk -a | grep "SDK Platform Android" | head -n 1 | sed 's/.*API \(.\+\),.*/\1/')
-	if [ ! -e android-sdk-linux/platforms/android-$NEWEST_API ] ; then
+	if [ ! -e ../platforms/android-$NEWEST_API ] ; then
 		./android update sdk -u --filter platform-tools,android-${NEWEST_API}
 	else
 		echo "Already fetched. "
 	fi
 	
-	if [ ! -e android-sdk-linux/platforms/android-$NEWEST_API ] ; then
+	if [ ! -e ../platforms/android-$NEWEST_API ] ; then
 		echo "Failed to fetch android sdk"
 		exit 1
 	fi