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

`FUNCNAME` instead of repeating function name. #613

Closed tfpf closed 1 year ago

tfpf commented 1 year ago

Instead of repeating the function names (which double as stage names), the name can be printed automatically.

myspaghetti commented 1 year ago

Thank you for the pull request. The commit works on bash, but the script secretly supports zsh too, so a solution that works on zsh is preferred. Plus, I don't mind the repetition even though it's technically bad coding.