From 87254ac89a9559864c0a245d6b150406439ce3d8 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Sat, 19 Jun 2021 18:35:58 -0400 Subject: [PATCH] fix: Add `shopt -s nullglob` to dependencies script (#1130) This prevents processing the unexpanded glob "**/.flattened-pom.xml" in repos which do not flatten any POMs. --- synthtool/gcp/templates/java_library/.kokoro/dependencies.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/synthtool/gcp/templates/java_library/.kokoro/dependencies.sh b/synthtool/gcp/templates/java_library/.kokoro/dependencies.sh index a7e999d33..9030ba8f9 100755 --- a/synthtool/gcp/templates/java_library/.kokoro/dependencies.sh +++ b/synthtool/gcp/templates/java_library/.kokoro/dependencies.sh @@ -14,6 +14,7 @@ # limitations under the License. set -eo pipefail +shopt -s nullglob ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))