Skip to content

Commit

Permalink
Merge pull request #168 from exoego/fix-167
Browse files Browse the repository at this point in the history
Respect folder-path when check-modified-files-only == yes
  • Loading branch information
gaurav-nelson authored Mar 1, 2023
2 parents c448486 + 1ce7e0f commit 3faccbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then

add_options

mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" )
FOLDER_ARRAY=(${FOLDER_PATH//,/ })
mapfile -t FILE_ARRAY < <( git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}")

for i in "${FILE_ARRAY[@]}"
do
Expand Down

0 comments on commit 3faccbc

Please sign in to comment.