summaryrefslogtreecommitdiff
path: root/src/Hakyll/Preview
diff options
context:
space:
mode:
authorCollin J. Doering <rekahsoft@gmail.com>2014-03-23 17:30:29 -0400
committerCollin J. Doering <rekahsoft@gmail.com>2014-03-23 17:30:29 -0400
commitda7ae99b122280849e57fc695bdc67b4433d76b3 (patch)
tree4c118ae388e26677e63dd99c64e4b37a65e8f9ab /src/Hakyll/Preview
parent677a7f0f2d6e2daeb57f7897b1f77b0993243839 (diff)
downloadhakyll-da7ae99b122280849e57fc695bdc67b4433d76b3.tar.gz
Fix unixFilter on Windows
On windows, the 'unixFilter' function used window's 'createProcess' function to create the external process that will filter some String input. The problem with this is that it is unable to execute batch stubs (eg. anything created using 'gem install ...') even if its in $PATH. Anyways a solution to this issue is to execute the batch file explicitly using 'cmd /c batchfile' but there is no rational way to know where said batchfile is on the system. My solution is to detect windows using the System.Info module and then instead of using 'proc' to create the function, use 'shell' instead which will be able to execute everything 'proc' can + batch files. Inspired by: http://www.blaenkdenum.com/posts/the-switch-to-hakyll/#scss Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
Diffstat (limited to 'src/Hakyll/Preview')
0 files changed, 0 insertions, 0 deletions