fix invalid sh syntax

"let" is invalid in sh