Don't check config directories with --no-config

If we don't use 'em, we should not complain about 'em.
This commit is contained in:
Fabian Homborg 2021-07-26 21:28:37 +02:00
parent 6e7d497a52
commit b9ba3020f8

View File

@ -425,7 +425,10 @@ void env_init(const struct config_paths_t *paths, bool do_uvars, bool default_pa
init_input();
// Complain about invalid config paths.
path_emit_config_directory_messages(vars);
// HACK: Assume the defaults are correct (in practice this is only --no-config anyway).
if (!default_paths) {
path_emit_config_directory_messages(vars);
}
// Initialize our uvars if requested.
if (!do_uvars) {