inline-scripts icon indicating copy to clipboard operation
inline-scripts copied to clipboard

Windows newlines on Linux

Open cimm opened this issue 5 years ago • 0 comments

The first script I tried, inline-script-tags, didn't work on my Ubuntu 20.04 Linux box. I got the following error:

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

The \r is a DOS style carriage return which Linux doesn't handle well. I replaced them with Linux-style newlines and now it works. This can easily be changed in vim with:

vim "$(yarn global bin)/inline-script-tags"
:se ff=unix
:wq

Cheers.

cimm avatar Nov 28 '20 20:11 cimm