Skip to content

Commit

Permalink
fixup! feat(tool): Allow patching specs
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin committed Oct 29, 2023
1 parent b1530a0 commit ad89194
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tool/generate-specs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ done

for spec in packages/nextcloud/lib/src/api/*.openapi.json; do
name="$(basename "$spec" | cut -d "." -f 1)"
if [ -d "tool/patches/$name" ]; then
for patch in "tool/patches/$name/"*; do
dir="packages/nextcloud/lib/src/patches/$name"
if [ -d "$dir" ]; then
for patch in "$dir/"*; do
cp "$spec" "/tmp/nextcloud-neon/$name.json"
jsonpatch --indent 4 "/tmp/nextcloud-neon/$name.json" "$patch" > "$spec"
done
Expand Down

0 comments on commit ad89194

Please sign in to comment.