update file, without error -bash: [: missing ']'.