mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 18:02:54 +01:00
allow shell git info to be optional
This commit is contained in:
parent
3199749954
commit
5099928710
@ -100,18 +100,21 @@ module.exports = function (grunt) {
|
||||
return getGitInfo(shell_repo);
|
||||
}).then(function (json) {
|
||||
shell_git = json;
|
||||
|
||||
}, function (err) {
|
||||
// shell git info is optional
|
||||
grunt.log.writeln(err);
|
||||
}).finally(function () {
|
||||
out += "brackets_build_version=" + version.substr(0, version.lastIndexOf("-") + 1) + www_git.commits + "\n";
|
||||
out += toProperties("brackets_www_", www_git);
|
||||
out += toProperties("brackets_shell_", shell_git);
|
||||
|
||||
if (shell_git) {
|
||||
out += toProperties("brackets_shell_", shell_git);
|
||||
}
|
||||
|
||||
grunt.log.write(out);
|
||||
grunt.file.write("build.prop", out);
|
||||
|
||||
done();
|
||||
}, function (err) {
|
||||
grunt.log.writeln(err);
|
||||
done(false);
|
||||
});
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user