From 0bfc9935b2759f7816b23ad50e023b0e63ddc359 Mon Sep 17 00:00:00 2001 From: Anis Kadri Date: Fri, 28 Sep 2012 17:41:12 -0700 Subject: [PATCH] CB-1359 simplifying API_LEVEL command --- bin/create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/create b/bin/create index 2f6c0180..8f535248 100755 --- a/bin/create +++ b/bin/create @@ -93,7 +93,7 @@ ACTIVITY_PATH="$PROJECT_PATH"/src/$PACKAGE_AS_PATH/$ACTIVITY.java MANIFEST_PATH="$PROJECT_PATH"/AndroidManifest.xml TARGET=$($ANDROID_BIN list targets | grep id: | tail -1 | cut -f 2 -d ' ' ) -API_LEVEL=$($ANDROID_BIN list target | grep "API level:" | tail -n 1 | awk '{gsub(" API level:", "");print}' | cut -f 2 -d ' ') +API_LEVEL=$($ANDROID_BIN list target | grep "API level:" | tail -n 1 | cut -f 2 -d ':' | tr -d ' ') # if this a distribution release no need to build a jar if [ ! -e "$BUILD_PATH"/cordova-$VERSION.jar ] && [ -d "$BUILD_PATH"/framework ]