diff --git a/src/lnav_config.cc b/src/lnav_config.cc index d8e9e20e..e3a2072a 100644 --- a/src/lnav_config.cc +++ b/src/lnav_config.cc @@ -240,7 +240,7 @@ install_from_git(const std::string& repo) return false; } - auto config_path = local_staging_path / "*.{json,lnav,sql}"; + auto config_path = local_staging_path / "*"; static_root_mem gl; int found_config_file = 0; int found_format_file = 0; @@ -259,6 +259,10 @@ install_from_git(const std::string& repo) found_sql_file += 1; continue; } + if (file_path.extension() != ".json") { + found_sql_file += 1; + continue; + } auto file_type_result = detect_config_file_type(file_path);