fix: replace heredoc with printf in build script
The heredoc inside the YAML block scalar (|) broke YAML parsing because the heredoc body lines (#!/bin/bash, exec lua...) were at column 0, which YAML interpreted as top-level keys. The ':' in the exec line triggered 'could not find expected ':'' parse errors. Replace with printf to keep the entire build script as properly-indented YAML block scalar content. This also fixes the mason UI crash where the newline-containing error message triggered 'replacement string item contains newlines' in nvim_buf_set_lines.
This commit is contained in:
@@ -16,10 +16,7 @@ source:
|
||||
git clone --depth 1 --branch v{{version}} https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src
|
||||
cp -r tia-lsp-src/src ./src
|
||||
mkdir -p bin
|
||||
cat > bin/tia-lsp << 'EOF'
|
||||
#!/bin/bash
|
||||
exec lua "$(dirname "$0")/../src/main.lua" "$@"
|
||||
EOF
|
||||
printf '#!/bin/bash\nexec lua "$(dirname "$0")/../src/main.lua" "$@"\n' > bin/tia-lsp
|
||||
chmod +x bin/tia-lsp
|
||||
|
||||
bin:
|
||||
|
||||
Reference in New Issue
Block a user