mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
CB-5349: fixed regression in update script
This commit is contained in:
parent
b895a0c335
commit
763e34e861
@ -181,10 +181,10 @@ exports.createProject = function(project_path, package_name, project_name, proje
|
|||||||
|
|
||||||
// Returns a promise.
|
// Returns a promise.
|
||||||
exports.updateProject = function(projectPath) {
|
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
|
// Check that requirements are met and proper targets are installed
|
||||||
return check_reqs.run()
|
return check_reqs.run()
|
||||||
.then(function() {
|
.then(function() {
|
||||||
var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
|
|
||||||
var target_api = check_reqs.get_target();
|
var target_api = check_reqs.get_target();
|
||||||
return ensureJarIsBuilt(version, target_api);
|
return ensureJarIsBuilt(version, target_api);
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user