[script] remove redundent lines