[config] GLOB_BRACE is not supported in musl

This commit is contained in:
Tim Stack 2022-08-03 07:12:09 -07:00
parent 5259da4f4f
commit ab3f01bbf5

View File

@ -240,7 +240,7 @@ install_from_git(const std::string& repo)
return false; return false;
} }
auto config_path = local_staging_path / "*.{json,lnav,sql}"; auto config_path = local_staging_path / "*";
static_root_mem<glob_t, globfree> gl; static_root_mem<glob_t, globfree> gl;
int found_config_file = 0; int found_config_file = 0;
int found_format_file = 0; int found_format_file = 0;
@ -259,6 +259,10 @@ install_from_git(const std::string& repo)
found_sql_file += 1; found_sql_file += 1;
continue; continue;
} }
if (file_path.extension() != ".json") {
found_sql_file += 1;
continue;
}
auto file_type_result = detect_config_file_type(file_path); auto file_type_result = detect_config_file_type(file_path);