fixes "line 143: [: =: unary operator expected"