mirror of
https://github.com/gaurav-nelson/github-action-markdown-link-check.git
synced 2024-11-25 19:13:43 +03:00
Merge pull request #89 from bpkroth/fixup-more-path-quoting-issues
Fix more file path quoting issues
This commit is contained in:
commit
2a60e0fe41
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
@ -18,6 +18,7 @@ jobs:
|
||||
with:
|
||||
# Add a test to restrict the test to just dir4 and dir5.
|
||||
folder-path: './md/dir4, ./md/dir5'
|
||||
file-path: './md/AdditionalFileTest1.md, ./md/AdditionalFileTest2.md'
|
||||
shellcheck:
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
|
@ -125,9 +125,9 @@ check_additional_files () {
|
||||
|
||||
if [ -n "$FILES" ]; then
|
||||
if [ "$MAX_DEPTH" -ne -1 ]; then
|
||||
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
else
|
||||
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
fi
|
||||
|
||||
add_options
|
||||
|
6
md/AdditionalFileTest1.md
Normal file
6
md/AdditionalFileTest1.md
Normal file
@ -0,0 +1,6 @@
|
||||
# AdditionalFileTest1
|
||||
|
||||
## Test
|
||||
|
||||
Go to [AdditionalFileTest2](./AdditionalFileTest2.md#test)
|
||||
|
6
md/AdditionalFileTest2.md
Normal file
6
md/AdditionalFileTest2.md
Normal file
@ -0,0 +1,6 @@
|
||||
# AdditionalFileTest2
|
||||
|
||||
## Test
|
||||
|
||||
Go to [AdditionalFileTest1](./AdditionalFileTest1.md#test)
|
||||
|
Loading…
Reference in New Issue
Block a user