oops
All checks were successful
pyrite-dev/taiga/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-03-17 09:27:21 +09:00
commit d332b1264d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 5 additions and 4 deletions

View file

@ -399,7 +399,7 @@ void default_nav(FILE* out, const char* top, xl_node_t* element, int indent) {
excludes = xl_get_path(element, "exclude");
xml = scan_xml("site/content/", "", excludes, strcmp(layer, "*") == 0 ? -0xffff : (atoi(layer) - 1));
xml = scan_xml("site/content/", "", excludes, strcmp(layer, "*") == 0 ? 0xffff : (atoi(layer) - 1));
if(excludes != NULL) free(excludes);

View file

@ -12,6 +12,7 @@ sub scan {
my @args = @_;
my $path = $args[0];
my $top = $args[1];
my $dirname = $args[2];
opendir(my $dh, $path);
@ -22,11 +23,11 @@ sub scan {
}
if(-d "$path/$file"){
scan("$path/$file", $top);
scan("$path/$file", $top, $dirname . $file . "/");
}else{
print("$path/$file\n");
my $dir = "$ARGV[1]/$file";
my $dir = "$ARGV[1]/$dirname$file";
$dir =~ s/\..*$//;
@ -40,5 +41,5 @@ sub scan {
}
for(my $i = 2; $i < @ARGV; $i += 1){
scan($ARGV[$i], $ARGV[$i]);
scan($ARGV[$i], $ARGV[$i], "");
}