Fix more file path quoting issues.

See Also: #88
This commit is contained in:
Brian Kroth 2020-12-11 10:18:55 -06:00
parent 72d871b8c6
commit 7d57278b54
4 changed files with 15 additions and 2 deletions

View File

@ -18,6 +18,7 @@ jobs:
with: with:
# Add a test to restrict the test to just dir4 and dir5. # Add a test to restrict the test to just dir4 and dir5.
folder-path: './md/dir4, ./md/dir5' folder-path: './md/dir4, ./md/dir5'
file-path: './md/AdditionalFileTest1.md, ./md/AdditionalFileTest2.md'
shellcheck: shellcheck:
runs-on: [ubuntu-latest] runs-on: [ubuntu-latest]
steps: steps:

View File

@ -125,9 +125,9 @@ check_additional_files () {
if [ -n "$FILES" ]; then if [ -n "$FILES" ]; then
if [ "$MAX_DEPTH" -ne -1 ]; 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 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 fi
add_options 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)