Please use `[ -n "$postgres_codename" ]` or `[ "$postgres_codename" != "" ]`.