mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Split on whitespace
This commit is contained in:
@@ -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', ->
|
||||
|
||||
Reference in New Issue
Block a user