The script works fine from somewhere like /tmp/Vintageous, but it fails where you try and install from a directory containing spaces - which is common on a Mac.
The rest was just a clean-up:
Check the status code of the python script (assuming that exits non-zero on errors; didn't check.
Exit with an error code if there is an error.
The case statements replacement to the if was just because.
The script works fine from somewhere like
/tmp/Vintageous
, but it fails where you try and install from a directory containing spaces - which is common on a Mac.The rest was just a clean-up:
case
statements replacement to theif
was just because.