

After you install the latest bash version you should edit the macos-guest-virtualbox.sh file and use the latest bash version (for example /usr/local/bin/bash) to replace the old bash version( /bin/bash ) in the first line of the macos-guest-virtualbox.sh file.

To fix the above error, you should install the latest bash version, you can read the article How To Update Bash Version On macOS to learn more.path/to/5.5/zsh macos-guest-virtualbox.sh Explicitly type the executable path, for example for zsh: Make sure the script is not executed with the default /bin/bash Please execute this script with Bash 4.3 or higher, or zsh 5.5 or higher.

(base) songs-MacBook-Pro:Downloads songzhao$. macos-guest-virtualbox.sh again to install the macOS on the VirtualBox virtual machine, but you may encounter the below error. (base) songs-MacBook-Pro:Downloads songzhao$ ls -l *.sh (base) songs-MacBook-Pro:Downloads songzhao$ chmod +x. (base) songs-MacBook-Pro:Downloads songzhao$ 1 songzhao staff 85093 Jan 2 10:18 macos-guest-virtualbox.sh macos-guest-virtualbox.sh to add the executable permission to the file.
