Fix the usage of spawn.

This commit is contained in:
Cheng Zhao
2013-03-24 22:53:30 +08:00
parent 371fdde4f9
commit 6ce25d4c71

View File

@@ -80,7 +80,7 @@ window.installAtomCommand = (commandPath) ->
bundledCommandPath = fs.resolve(window.resourcePath, 'atom.sh')
if bundledCommandPath?
fs.write(commandPath, fs.read(bundledCommandPath))
spawn("chmod u+x '#{commandPath}'")
spawn('chmod', ['u+x', commandPath])
window.handleWindowEvents = ->
$(window).command 'window:toggle-full-screen', => atom.toggleFullScreen()