fix: correct glob pattern to match nested directories in build script
This commit is contained in:
parent
ae6cca44bb
commit
21ed704f1e
4
tools.h
4
tools.h
@ -846,6 +846,10 @@ char *tool_function_directory_rglob(char *target_dir) {
|
|||||||
struct stat file_stat;
|
struct stat file_stat;
|
||||||
char mod_time[20], create_time[20];
|
char mod_time[20], create_time[20];
|
||||||
|
|
||||||
|
` if(!strcmp(target_dir, ".")) {
|
||||||
|
target_dir[0] = '*';
|
||||||
|
}
|
||||||
|
|
||||||
recursive_glob(target_dir, &results);
|
recursive_glob(target_dir, &results);
|
||||||
|
|
||||||
json_object *json_array = json_object_new_array();
|
json_object *json_array = json_object_new_array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user