[bash] remove unused code