Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distil can't handle spaces in filename #35

Open
greay opened this issue Dec 23, 2015 · 2 comments
Open

distil can't handle spaces in filename #35

greay opened this issue Dec 23, 2015 · 2 comments

Comments

@greay
Copy link

greay commented Dec 23, 2015

When supplying a directory, distil will choke on any files in that directory that contain spaces. So for example running "moonshine distil -d target lua" where lua has a file "background tests.lua" will result in the error:

$ moonshine distil -d target lua
/usr/local/lib/node_modules/moonshine/bin/commands/distil.js:164
        if (errPart[1] != 'luac') throw err;
                                  ^

Error: Command failed: /bin/sh -c luac -o lua/backgrounds test.lua.moonshine.luac lua/backgrounds test.lua
luac: cannot open test.lua.moonshine.luac: No such file or directory
@paulcuth
Copy link
Contributor

Hi, could you provide a description? In which way are you using the distillery? Any error messages?

If you are using it via the command line, you'll need to wrap filenames with spaces in quotes--but that is normal for all command line expressions.

@greay
Copy link
Author

greay commented Dec 23, 2015

Sorry 'bout that. Updated. The problem is, in this situation, I'm not able to wrap the filenames in quotes because I don't supply them to the command line utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants