mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-11-05 04:06:38 +08:00
Fix adding subcategory to category.sh
This commit is contained in:
parent
e7bfc3dd7c
commit
1dcf3cb47a
@ -11,4 +11,5 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make "${1#-}"."--category-$2"
|
||||
# Cookbook accept "." as replacement to "/"
|
||||
make "${1#-}"."--category-${2//\//.}"
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user