Split on whitespace

This commit is contained in:
Kevin Sawicki 2014-08-27 14:43:23 -07:00
parent d225966374
commit a3d2924484

View File

@ -17,7 +17,7 @@ module.exports = (grunt) ->
cmd = 'du'
args = ['-sk', path.join(buildDir, 'Atom')]
spawn {cmd, args}, (error, {stdout}) ->
installedSize = stdout.split(' ')?[0] or '200000' # default to 200MB
installedSize = stdout.split(/\s+/)?[0] or '200000' # default to 200MB
callback(null, installedSize)
grunt.registerTask 'mkdeb', 'Create debian package', ->