you don't to use the `[[` bash-ism here, the standard posix `[` is enough