Skip to content

Commit

Permalink
make-release.sh: Properly handle file names with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Dec 13, 2023
1 parent 42dff4b commit 611ca41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bin/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ rm -rf asset vendor
rm -f composer.lock
composer install --no-scripts || fail "composer install failed"
composer run-script post-update-cmd -- copy-assets
find vendor/ -type f -name "*.php" \
| grep -v '/examples/' \
| grep -v '/example/' \
| grep -v '/tests/' \
| grep -v '/test/' \
| xargs -L1 git add -f
find vendor/ -type f -name LICENSE | xargs -L1 git add -f
find vendor/ -type f -name '*.json' | xargs -L1 git add -f
find asset/ -type f | xargs -L1 git add -f
find vendor/ -type f -name "*.php" -print0 \
| grep -z -v '/examples/' \
| grep -z -v '/example/' \
| grep -z -v '/tests/' \
| grep -z -v '/test/' \
| xargs -0 -L1 git add -f
find vendor/ -type f -name LICENSE -print0 | xargs -0 -L1 git add -f
find vendor/ -type f -name '*.json' -print0 | xargs -0 -L1 git add -f
find asset/ -type f -print0 | xargs -0 -L1 git add -f
echo "v$VERSION" > VERSION
git add VERSION
git add composer.lock -f
Expand Down

0 comments on commit 611ca41

Please sign in to comment.