Refactor .travis/install.sh.
Fix missing ;;
Add missing fi.
I hate bash.
Sooo much typos.
Add -y flags.
Fix indent.
Make indentation use space instead of tabs.
I fail at indentation.
Possible logic error.
Merge pull request #1443 from Ayrx/refactor-install-script

Refactor .travis/install.sh.