Closed gforien closed 2 years ago
It's an encoding issue, see https://stackoverflow.com/a/20929197/6402299 When changing line endings to LF, it works again but only for the local copy of the repository. Note that it should work correctly on a linux system.
Several potential solutions for this to work, when someone clones the repository:
git config --local core.autocrlf false
before using the code.gitconfig
file, and add instruction in README to git config --local include.path ../.gitconfig
before using the code-replace
operator , before using the $script variable
When cloning repo on a Windows machine, and launching the script
Error: bash: -c: line 1: syntax error near unexpected token &&