diff --git a/lib/util/diff.js b/lib/util/diff.js index c30fa7a..eaa2fc3 100644 --- a/lib/util/diff.js +++ b/lib/util/diff.js @@ -27,12 +27,12 @@ export function diff (a, b, page) { // https://stackoverflow.com/a/60221847 // use tail to cut off file info lines and re-add with fake filenames/dates // this function is so extra now holy shit - execSync(String.raw`bash <<- 'EOF' + execSync(String.raw`bash <<- '_EOF_' diff --color=always -u \ ${labels ? `--label="$(echo '${toBase64(labels[0])}' | base64 -d)" ` : ''}<(echo '${toBase64(a)}' | base64 -d) \ ${labels ? `--label="$(echo '${toBase64(labels[1])}' | base64 -d)" ` : ''}<(echo '${toBase64(b)}' | base64 -d) \ ${labels ? `|| true` : `| tail -n +3` /* cut off header if no labels */} - EOF`, { + _EOF_`, { // display result directly in terminal stdio: 'inherit', });