Fixed the bash syntax

I messed up the bash functions again, fixed it ;)