For sure use sh instead of bash. And I assume, that 'exit 0' will exit the installation, not only this script. Just remove that. And there should be no need for a blank line at the end, but it does not hurt also.