Skip to content

Commit 611ca41

Browse files
committed
make-release.sh: Properly handle file names with whitespace
1 parent 42dff4b commit 611ca41

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bin/make-release.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ rm -rf asset vendor
3535
rm -f composer.lock
3636
composer install --no-scripts || fail "composer install failed"
3737
composer run-script post-update-cmd -- copy-assets
38-
find vendor/ -type f -name "*.php" \
39-
| grep -v '/examples/' \
40-
| grep -v '/example/' \
41-
| grep -v '/tests/' \
42-
| grep -v '/test/' \
43-
| xargs -L1 git add -f
44-
find vendor/ -type f -name LICENSE | xargs -L1 git add -f
45-
find vendor/ -type f -name '*.json' | xargs -L1 git add -f
46-
find asset/ -type f | xargs -L1 git add -f
38+
find vendor/ -type f -name "*.php" -print0 \
39+
| grep -z -v '/examples/' \
40+
| grep -z -v '/example/' \
41+
| grep -z -v '/tests/' \
42+
| grep -z -v '/test/' \
43+
| xargs -0 -L1 git add -f
44+
find vendor/ -type f -name LICENSE -print0 | xargs -0 -L1 git add -f
45+
find vendor/ -type f -name '*.json' -print0 | xargs -0 -L1 git add -f
46+
find asset/ -type f -print0 | xargs -0 -L1 git add -f
4747
echo "v$VERSION" > VERSION
4848
git add VERSION
4949
git add composer.lock -f

0 commit comments

Comments
 (0)