cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject webworks commit: [CB-3497] Fix create script for Linux/OSX
Date Tue, 04 Jun 2013 19:03:31 GMT
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 <haahmad@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 <bhiggins@blackberry.com>
Authored: Tue Jun 4 15:04:55 2013 -0400
Committer: Bryan Higgins <bhiggins@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 "$@"


Mime
View raw message