myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.46k stars 1.11k forks source link

$'\r' Error #611

Closed ANILSRGT closed 1 year ago

ANILSRGT commented 1 year ago
./macos-guest-virtualbox.sh: line 6: $'\r': command not found
./macos-guest-virtualbox.sh: line 15: $'\r': command not found
./macos-guest-virtualbox.sh: line 16: syntax error near unexpected token `$'{\r''
'/macos-guest-virtualbox.sh: line 16: `function set_variables() {
myspaghetti commented 1 year ago

Duplicate of #28 , resolved as won't fix. Probably on installation, git was set to convert newline characters LF to CRLF. While I can configure the repository to override local Git configuration I feel like respecting local settings is the correct solution.

Configure git to keep line endings or download the script manually.