Skip to content

Commit

Permalink
Merge pull request #88 from bpkroth/master
Browse files Browse the repository at this point in the history
Fix find command quoting issues for multiple folders.
  • Loading branch information
gaurav-nelson committed Dec 11, 2020
2 parents 7481451 + 78e8afa commit 72d871b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ jobs:
uses: ./
with:
check-modified-files-only: 'yes'
markdown-link-check-folders:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: markdown-link-check
uses: ./
with:
# Add a test to restrict the test to just dir4 and dir5.
folder-path: './md/dir4, ./md/dir5'
shellcheck:
runs-on: [ubuntu-latest]
steps:
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
else

if [ "$5" -ne -1 ]; then
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
else
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
fi

add_options
Expand Down
6 changes: 6 additions & 0 deletions md/dir4/ok4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ok4

## Test

Go to [Ok5](../dir5/ok5.md#test)

6 changes: 6 additions & 0 deletions md/dir5/ok5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ok5

## Test

Go to [Ok4](../dir4/ok4.md#test)

0 comments on commit 72d871b

Please sign in to comment.