You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/06/06 18:01:28 UTC

android commit: Replace naive relative path in version script with proper one

Updated Branches:
  refs/heads/master c3b8b279b -> e518eacbd


Replace naive relative path in version script with proper one


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

Branch: refs/heads/master
Commit: e518eacbdedd523141c29571e6ea4c3f0be27a3a
Parents: c3b8b27
Author: Braden Shepherdson <br...@gmail.com>
Authored: Thu Jun 6 12:00:33 2013 -0400
Committer: Braden Shepherdson <br...@gmail.com>
Committed: Thu Jun 6 12:00:33 2013 -0400

----------------------------------------------------------------------
 bin/templates/cordova/version |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/e518eacb/bin/templates/cordova/version
----------------------------------------------------------------------
diff --git a/bin/templates/cordova/version b/bin/templates/cordova/version
index 21147ab..5760e95 100755
--- a/bin/templates/cordova/version
+++ b/bin/templates/cordova/version
@@ -24,7 +24,7 @@ PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
 VERSION_FILE_PATH="$PROJECT_PATH/assets/www/cordova.js"
 
 if [ -f "$VERSION_FILE_PATH" ]; then
-    JSVersion=$(sed -n '2,2p' assets/www/cordova.js)
+    JSVersion=$(sed -n '2,2p' $VERSION_FILE_PATH)
     echo $JSVersion | sed -e 's/\/\/ //'| cut -f 1 -d '-'
 else
     echo "The file \"$VERSION_FILE_PATH\" does not exist."