Skip to content

Commit

Permalink
Fix more file path quoting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
bpkroth committed Dec 11, 2020
1 parent 72d871b commit 7d57278
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions md/AdditionalFileTest1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# AdditionalFileTest1

## Test

Go to [AdditionalFileTest2](./AdditionalFileTest2.md#test)

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

## Test

Go to [AdditionalFileTest1](./AdditionalFileTest1.md#test)

0 comments on commit 7d57278

Please sign in to comment.