Skip to content

Commit

Permalink
fixed bug with pattern matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Aug 26, 2022
1 parent 646144d commit b192991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Expand Up @@ -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}')"
Expand Down Expand Up @@ -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}')"
Expand Down

0 comments on commit b192991

Please sign in to comment.