Commit 5c4d53a7 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Исправлена ошибка сборки без свн.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64903 954022d7-b5bf-4e40-9824-e11837661b57
parent bac2db34
module.exports = function(grunt) { module.exports = function(grunt) {
var revision, defaultConfig, packageFile, toolsConfig, toolsFile; var revision="unknown", defaultConfig, packageFile, toolsConfig, toolsFile;
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
...@@ -16,7 +16,9 @@ module.exports = function(grunt) { ...@@ -16,7 +16,9 @@ module.exports = function(grunt) {
cmd: 'svnversion', cmd: 'svnversion',
args: ['../../../../../'], args: ['../../../../../'],
}, function (error, result, code) { }, function (error, result, code) {
revision = null !== error ? undefined : result; if (null !== error) {
revision = result;
}
// All done, continue to the next tasks // All done, continue to the next tasks
done(); done();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment