From b1929916faf2aff6891e875744740e36b23b8944 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 25 Aug 2022 22:12:38 -0600 Subject: [PATCH] fixed bug with pattern matching. --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 1c78eb75..48539cb8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,7 +21,7 @@ function get_diff() { base="$1" sha="$2" filter="$3" - pattern_file="$4" + pattern_file="${4:-}" while IFS='' read -r sub; do sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')" @@ -50,7 +50,7 @@ function get_diff() { function get_renames() { base="$1" sha="$2" - pattern_file="$3" + pattern_file="${3:-}" while IFS='' read -r sub; do sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"