lonekorean/wordpress-export-to-markdown

Windows control characters in the code

igoros777 opened this issue · 1 comments

GitHub Windows client strikes again, eh?

/usr/local/bin/wordpress-export-to-markdown --post-folders=true --prefix-date=false --input "export.xml" --output "/mnt/c/zip/tmp/output" --year-folders=false --month-folders=false --save-attached-images=true --save-scraped-images=true --include-other-types=true

/usr/bin/env: ‘node\r’: No such file or directory

cat -v /usr/local/bin/wordpress-export-to-markdown|head -10

#!/usr/bin/env node^M
^M
const compareVersions = require('compare-versions');^M
const path = require('path');^M
const process = require('process');^M
^M
const wizard = require('./src/wizard');^M
const parser = require('./src/parser');^M
const writer = require('./src/writer');^M`

It's been a while and I've changed computers and I'm not sure this is still an issue. Confirmed that git config --get core.autocrlf gives me true.

Anywho, I followed this guide to hopefully ensure line endings are handled nicely through git whenever me or anyone else works on this repo.