You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/01/07 01:45:21 UTC
[07/10] ios commit: [CB-8044] updated run script to properly handle
--nobuild flag in all cases
[CB-8044] updated run script to properly handle --nobuild flag in all cases
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/b53b305d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/b53b305d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/b53b305d
Branch: refs/heads/wkwebview
Commit: b53b305d88ce3b9cf74232c083d962e5b6d778da
Parents: 19e9545
Author: Lorin Beer <lo...@gmail.com>
Authored: Fri Dec 12 13:22:40 2014 -0800
Committer: Lorin Beer <lo...@gmail.com>
Committed: Fri Dec 12 13:22:40 2014 -0800
----------------------------------------------------------------------
bin/templates/scripts/cordova/run | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/b53b305d/bin/templates/scripts/cordova/run
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/run b/bin/templates/scripts/cordova/run
index f66f703..12633bf 100755
--- a/bin/templates/scripts/cordova/run
+++ b/bin/templates/scripts/cordova/run
@@ -115,7 +115,7 @@ if "$USE_DEVICE"; then
USE_SIMULATOR=true
else
# if we got here, we can deploy the app, then exit success
- if [ ! $NO_BUILD ]; then
+ if ! [ "$NO_BUILD" = true ]; then
"$CORDOVA_PATH/build" --device || exit $?
fi
ios-deploy -d -b "$DEVICE_APP_PATH"
@@ -139,7 +139,7 @@ if "$USE_SIMULATOR"; then
fi
# launch using ios-sim
- if [ ! $NO_BUILD ]; then
+ if ! [ "$NO_BUILD" = true ]; then
"$CORDOVA_PATH/build" --emulator || exit $?
fi
ios-sim launch "$SIMULATOR_APP_PATH" --stderr "$CORDOVA_PATH/console.log" --stdout "$CORDOVA_PATH/console.log" --devicetypeid com.apple.CoreSimulator.SimDeviceType.$TARGET --exit
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org