Skip to content

Commit 6b8a7fc

Browse files
committed
Fix import script
* Match foo.gemspec (gemspecs have a basename). * Using `find` alone is enough and more robust.
1 parent 565be64 commit 6b8a7fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/import-mri-files.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ rm lib/mri/racc/rdoc/grammar.en.rdoc
2020
rm lib/mri/securerandom.rb
2121
rm lib/mri/timeout.rb
2222
rm lib/mri/weakref.rb
23-
find lib/mri | grep '/.gemspec$' | xargs rm
24-
find lib/mri | grep '/.document$' | xargs rm
23+
find lib/mri -name '*.gemspec' -delete
24+
find lib/mri -name '.document' -delete
2525

2626
# *.c
2727
cp ../ruby/st.c src/main/c/cext/st.c

0 commit comments

Comments
 (0)