Skip to content

Commit

Permalink
fix(bazel): do not emit empty rm commands (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Aug 19, 2022
1 parent e126db9 commit 7064f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules_java_gapic/java_gapic_pkg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _java_gapic_srcs_pkg_impl(ctx):
# Remove empty files. If there are no resource names, one such file might have
# been created. See java_gapic.bzl.
rm $(find {package_dir_path}/src/main/java -size 0)
find {package_dir_path}/src/main/java -type f -size 0 | while read f; do rm -f $f; done
if [ -d {package_dir_path}/src/main/java/samples ]; then
mv {package_dir_path}/src/main/java/samples {package_dir_path}
Expand Down

0 comments on commit 7064f4c

Please sign in to comment.