bash: fixed syntax error 'case'