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.53k stars 1.12k forks source link

BUG crushes on cygwin (dos encoding) #390

Closed MontrealSergiy closed 3 years ago

MontrealSergiy commented 3 years ago

Crushes on cygwin (though was tested ) but runs up to install coreutils on git-bash (mingw64 based)

/cygdrive/d/mac
$  ./macos-guest-virtualbox.sh

./macos-guest-virtualbox.sh: line 6: $'\r': command not found
./macos-guest-virtualbox.sh: line 15: $'\r': command not found
....

(Remove \r , it's not supported)

myspaghetti commented 3 years ago

Duplicate of issue #28

Won't fix; you need to choose the correct line endings for your terminal by yourself.

miqueet commented 3 years ago

@MontrealSergiy If you install dos2unix on cygwin and do the following it will fix the line breaks.

https://superuser.com/questions/612435/cygwin-dos2unix-command-not-found

$ dos2unix.exe macos-guest-virtualbox.sh
dos2unix: converting file macos-guest-virtualbox.sh to Unix format...

mike ~/macos-virtualbox
$ ./
.git/                      README.md
LICENSE                    macos-guest-virtualbox.sh

mike ~/macos-virtualbox
$ ./macos-guest-virtualbox.sh

Push-button installer of macOS on VirtualBox

This script installs only open-source software and unmodified Apple binaries,
and requires about 50GB of available storage, of which 25GB are for temporary
installation files that may be deleted when the script is finished.

The script interacts with the virtual machine twice, please do not interact
with the virtual machine manually before the script is finished.

Documentation about optional configuration, iCloud and iMessage connectivity,
resuming the script by stages, and other topics can be viewed with the
following command:

  ./macos-guest-virtualbox.sh documentation | less -R

Press enter to review the script configuration