Updated Branches:
  refs/heads/master 48d3b5131 -> 6595b90c0

Do not prompt user about whether to build from the emulate script.

Just go ahead and do the build.
Fixes https://issues.apache.org/jira/browse/CB-1595


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/6595b90c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/6595b90c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/6595b90c

Branch: refs/heads/master
Commit: 6595b90c0a393ccbdefa34a20900bab0a6b6a609
Parents: 48d3b51
Author: Andrew Grieve <agri...@chromium.org>
Authored: Mon Oct 15 20:31:36 2012 -0400
Committer: Andrew Grieve <agri...@chromium.org>
Committed: Mon Oct 15 20:31:36 2012 -0400

----------------------------------------------------------------------
 bin/templates/project/cordova/emulate |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/6595b90c/bin/templates/project/cordova/emulate
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/emulate 
b/bin/templates/project/cordova/emulate
index 63b3e4a..10551fb 100755
--- a/bin/templates/project/cordova/emulate
+++ b/bin/templates/project/cordova/emulate
@@ -38,18 +38,16 @@ if [ $# -lt 1 ]; then
 fi
 
 if [ ! -d "$APP_PATH" ]; then
-       read -p "Project '$APP_PATH' is not built. Build? [y/n]: " REPLY 
-       if [ "$REPLY" == "y" ]; then 
-               $CORDOVA_PATH/debug
-               exit 0
-       else 
+       echo "Project '$APP_PATH' is not built. Building."
+  $CORDOVA_PATH/debug || exit $?
+fi
+
+if [ ! -d "$APP_PATH" ]; then
                echo "$APP_PATH not found to emulate."
                exit 1
-       fi      
 fi
 
 # launch using ios-sim
-
 if which ios-sim >/dev/null; then
     ios-sim launch "$APP_PATH" --stderr "$CORDOVA_PATH/console.log" --stdout 
"$CORDOVA_PATH/console.log" &
 else

Reply via email to