Skip to content
This repository was archived by the owner on May 29, 2020. It is now read-only.

Commit 649396e

Browse files
tisgrosapegin
authored andcommitted
Allow spaces in directory path. Fixes #323 (#350)
1 parent 3703907 commit 649396e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/engines/fontforge.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = function(o, allDone) {
2828
var args = [
2929
'fontforge',
3030
'-script',
31-
path.join(__dirname, 'fontforge/generate.py')
31+
'"' + path.join(__dirname, 'fontforge/generate.py') + '"'
3232
].join(' ');
3333

3434
var proc = exec(args, {maxBuffer: o.execMaxBuffer}, function(err, out, code) {
@@ -104,7 +104,7 @@ module.exports = function(o, allDone) {
104104
logger.log( // cannot use error() because it will stop execution of callback of exec (which shows error message)
105105
"fontforge process has unexpectedly closed.\n" +
106106
"1. Try to run grunt in verbose mode to see fontforge output: " + chalk.bold('grunt --verbose webfont') + ".\n" +
107-
"2. If stderr maxBuffer exceeded try to increase " + chalk.bold('execMaxBuffer') + ", see " +
107+
"2. If stderr maxBuffer exceeded try to increase " + chalk.bold('execMaxBuffer') + ", see " +
108108
chalk.underline('https://github.com/sapegin/grunt-webfont#execMaxBuffer') + ". "
109109
);
110110
}

0 commit comments

Comments
 (0)