Suggest to use 'bash -n <outout>' to validate script's syntax