mirror of
https://github.com/sudoxnym/brands.git
synced 2026-05-19 12:08:50 +00:00
Split core/custom domains (#2542)
This commit is contained in:
parent
8fdfbc8758
commit
89989a5ad5
1 changed files with 3 additions and 1 deletions
|
|
@ -39,4 +39,6 @@ find ./build -type f -name "logo.png" | while read logo; do
|
|||
done
|
||||
|
||||
# Create domains.json
|
||||
find ./build -maxdepth 1 -type d -exec basename {} \; | sort | jq -sR 'split("\n")[1:]' | jq 'map(select(length > 0))' > ./build/domains.json
|
||||
core_integrations=$(find ./core_integrations -maxdepth 1 -type d -exec basename {} \; | sort | jq -sR 'split("\n")[1:]' | jq -r 'map(select(length > 0))')
|
||||
custom_integrations=$(find ./custom_integrations -maxdepth 1 -type d -exec basename {} \; | sort | jq -sR 'split("\n")[1:]' | jq -r 'map(select(length > 0))')
|
||||
jq -n '{"core": $core, "custom": $custom}' --argjson core "$core_integrations" --argjson custom "$custom_integrations" | jq -r . > ./build/domains.json
|
||||
Loading…
Reference in a new issue