Skip to content

Commit

Permalink
correct refs to various lib scripts in run.
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Jun 14, 2013
1 parent 53cc381 commit 32d74f8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bin/templates/cordova/run
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ function wait_for_emulator {
if [[ "$#" -eq 2 ]] ; then
$DIR/build $2
if [[ $1 == "--device" ]] ; then
$DIR/lib/install_device
$DIR/lib/install-device
elif [[ $1 == "--emulator" ]] ; then
$DIR/lib/install_emulator
$DIR/lib/install-emulator
elif [[ $1 =~ "--target=" ]]; then
$DIR/lib/install_device $1
$DIR/lib/install-device $1
else
echo "Error : '$1' is not recognized as an install option"
fi
Expand All @@ -89,13 +89,13 @@ elif [[ "$#" -eq 1 ]] ; then
$DIR/build $1
elif [[ $1 == "--device" ]] ; then
$DIR/build
$DIR/lib/install_device
$DIR/lib/install-device
elif [[ $1 == "--emulator" ]] ; then
$DIR/build
$DIR/lib/install_emulator
$DIR/lib/install-emulator
elif [[ $1 =~ "--target=" ]]; then
$DIR/build
$DIR/lib/install_device $1
$DIR/lib/install-device $1
else
echo "Error : '$1' is not recognized as an install option"
fi
Expand All @@ -104,17 +104,17 @@ else
#$DIR/build
devices=$("$DIR/lib/list-devices")
if [ $? = 0 ]; then
$DIR/lib/install_device
$DIR/lib/install-device
else
emulators=$("$DIR/lib/list-started-emulators")
if [ $? = 0 ] ; then
$DIR/lib/install_emulator
$DIR/lib/install-emulator
else
images=$("$DIR/lib/list-emulator-images")
if [ $? = 0 ] ; then
$DIR/lib/start-emulator
wait_for_emulator
$DIR/lib/install_emulator
$DIR/lib/install-emulator
else
echo "No Android devices attached, nor emulator images available to start. How are we supposed to do this, then?"
exit 2
Expand Down

0 comments on commit 32d74f8

Please sign in to comment.