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:03:31 UTC

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

Updated Branches:
  refs/heads/master 373edcab8 -> 6c397aa5b


[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/6c397aa5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/6c397aa5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/6c397aa5

Branch: refs/heads/master
Commit: 6c397aa5b81627f45e1edaf89f449b08548c4325
Parents: 373edca
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:04:55 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/6c397aa5/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 "$@"