Skip to content

Commit

Permalink
Fix so that we get the correct id when more than 9 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Johnson committed Sep 7, 2011
1 parent d34c0b0 commit aa57741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -e
PROJECT_PATH=${1:-"./example"}
PACKAGE=${2:-"com.phonegap.example"}
ACTIVITY=${3:-"PhoneGapExample"}
TARGET=$(android list targets | grep 'id: ' | sed 's/id: \([0-9]\).*/\1/g' | tail -1)
TARGET=$(android list targets | grep 'id: ' | sed 's/id: \([0-9]*\).*/\1/g' | tail -1)
VERSION=$(cat ./VERSION)

# clobber any existing example
Expand Down

0 comments on commit aa57741

Please sign in to comment.