Bash code style

Hi!
I was just passing by and I thought that I could make a few changes...
If you want a detailed explanation of some specific change, feel free to ask!
However, most of such questions were already answered here:
* http://mywiki.wooledge.org/BashPitfalls
* http://mywiki.wooledge.org/BashFAQ

Have a nice day!