Merge pull request #89 from bpkroth/fixup-more-path-quoting-issues

Fix more file path quoting issues
This commit is contained in:
Gaurav Nelson 2020-12-14 10:15:11 +10:00 committed by GitHub
commit 2a60e0fe41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 2 deletions

View File

@ -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:

View File

@ -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

View File

@ -0,0 +1,6 @@
# AdditionalFileTest1
## Test
Go to [AdditionalFileTest2](./AdditionalFileTest2.md#test)

View File

@ -0,0 +1,6 @@
# AdditionalFileTest2
## Test
Go to [AdditionalFileTest1](./AdditionalFileTest1.md#test)