From 763e34e861b26a7e938a3e59b5f743ea1c8d7f95 Mon Sep 17 00:00:00 2001 From: Steven Gill Date: Mon, 11 Nov 2013 16:32:34 -0800 Subject: [PATCH] CB-5349: fixed regression in update script --- bin/lib/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index 7b015aca..c5696696 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -181,10 +181,10 @@ exports.createProject = function(project_path, package_name, project_name, proje // Returns a promise. exports.updateProject = function(projectPath) { + var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim(); // Check that requirements are met and proper targets are installed return check_reqs.run() .then(function() { - var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim(); var target_api = check_reqs.get_target(); return ensureJarIsBuilt(version, target_api); }).then(function() {