Fix bash syntax errors