Fix adding subcategory to category.sh

This commit is contained in:
Wildan M 2026-07-15 15:06:18 +07:00
parent e7bfc3dd7c
commit 1dcf3cb47a
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 5 additions and 2 deletions

View File

@ -11,4 +11,5 @@ then
exit 1
fi
make "${1#-}"."--category-$2"
# Cookbook accept "." as replacement to "/"
make "${1#-}"."--category-${2//\//.}"

View File

@ -475,7 +475,9 @@ fn parse_args(args: Vec<String>) -> Result<(CliConfig, CliCommand, Vec<CookRecip
}
} else if arg.starts_with("--category-") {
// to workaround make command limit we provide this option
config.category = Some(PathBuf::from(arg[("--category-").len()..].to_owned()));
config.category = Some(PathBuf::from(
arg[("--category-").len()..].replace('.', "/").to_owned(),
));
} else {
match arg.as_str() {
"--repo-binary" => override_filesystem_repo_binary = true,