Skip to content

Commit 5d94f1d

Browse files
fix(bazel): do not print current working directory (#1028)
1 parent 7064f4c commit 5d94f1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rules_java_gapic/java_gapic_pkg.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _gapic_pkg_tar_impl(ctx):
8787
cd {package_dir_path}/{tar_cd_suffix}
8888
8989
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
90-
cd -
90+
cd - > /dev/null
9191
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
9292
rm -rf {package_dir_path}
9393
""".format(
@@ -213,7 +213,7 @@ def _java_gapic_build_configs_pkg_impl(ctx):
213213
chmod 644 {package_dir_path}/*
214214
cd {package_dir_path}/{tar_cd_suffix}
215215
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
216-
cd -
216+
cd - > /dev/null
217217
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
218218
""".format(
219219
templates = " ".join(["'%s'" % f.path for f in expanded_templates]),
@@ -286,7 +286,7 @@ def _java_gapic_srcs_pkg_impl(ctx):
286286
done
287287
cd {package_dir_path}/{tar_cd_suffix}
288288
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
289-
cd -
289+
cd - > /dev/null
290290
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
291291
""".format(
292292
srcs = " ".join(["'%s'" % f.path for f in srcs]),

0 commit comments

Comments
 (0)