This script, originally created on April 29, 2015, addressed a different behavior of LibreOffice installation on macOS at that time. However, it is now outdated and no longer relevant. Please refer to the latest comments for updated information, as much has changed over the past 8–9 years.
sudo curl https://gist.githubusercontent.com/pankaj28843/3ad78df6290b5ba931c1/raw/soffice.sh > /usr/local/bin/soffice && sudo chmod +x /usr/local/bin/soffice#!/bin/bash
# This workaround is necessary because a symlink won't work.
# It may complain about missing .plist files.
/Applications/LibreOffice.app/Contents/MacOS/soffice "$@"sudo chmod +x /usr/local/bin/sofficesoffice --headless --convert-to pdf:"calc_pdf_Export" /path/to/some/file.xlsxThis version clarifies the instructions and ensures proper grammar.
Your paths are missing the L in local.