You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2013/06/04 21:35:24 UTC

[2/2] webworks commit: [CB-3497] Fix create script for Linux/OSX

[CB-3497] Fix create script for Linux/OSX

- NPM install will return error code 0 if run successfuly

Reviewed by Hasan Ahmad <ha...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/e5dc06c4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/e5dc06c4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/e5dc06c4

Branch: refs/heads/2.8.x
Commit: e5dc06c4bd7fabbbae6b0f74333941647a5ab0ff
Parents: 8befef8
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Tue Jun 4 15:04:55 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Jun 4 15:37:05 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/create |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/e5dc06c4/blackberry10/bin/create
----------------------------------------------------------------------
diff --git a/blackberry10/bin/create b/blackberry10/bin/create
index 9684032..1e7849c 100755
--- a/blackberry10/bin/create
+++ b/blackberry10/bin/create
@@ -30,9 +30,10 @@ BIN_DIR=$(dirname "$0")
 cd $BIN_DIR/..
 #Removed sudo usage so that node modules are not ownder by root
 npm install
+
 cd $CURRENT_DIR
 
-if [ $? -eq 0 ]; then
+if ! [ $? -eq 0 ]; then
   echo "NPM install failed. Aborting."
 else
   node $BIN_DIR/create.js "$@"