inline-scripts
inline-scripts copied to clipboard
Windows newlines on Linux
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.