added echo chking in github,removed extra if brace
Merge pull request #3 from comradegithub2014/master

added echo chking in github,removed extra if brace