Closed weclock-droid closed 3 years ago
whatever you downloaded the script in fuxed the line endings I think, download it raw from github and it should work a bit better
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.
For anyone coming here in the future: running sed -i 's/\r$//' macos-guest-virtualbox.sh
removes the \r newline characters (answer from https://stackoverflow.com/a/32912867/1297830)
Is there a guide where I can learn how or what exactly to set this up? I've been trying my google-fu but so far I'm stuck here:
$ /home/user/macos-guest-virtualbox.sh /home/user/macos-guest-virtualbox.sh: line 6: $'\r': command not found /home/user/macos-guest-virtualbox.sh: line 15: $'\r': command not found /home/user/macos-guest-virtualbox.sh: line 16: syntax error near unexpected token
$'{\r'' 'home/user/macos-guest-virtualbox.sh: line 16:
function set_variables() {