Skip to content

Commit 7481451

Browse files
Merge pull request #86 from TriplEight/38_newer_mlc_version
update dep version
2 parents 28631ee + 411c322 commit 7481451

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ YELLOW='\033[0;33m'
88
BLUE='\033[0;34m'
99
RED='\033[0;31m'
1010

11-
npm i -g markdown-link-check@3.8.3
11+
npm i -g markdown-link-check@3.8.5
1212

1313
declare -a FIND_CALL
1414
declare -a COMMAND_DIRS COMMAND_FILES
@@ -73,7 +73,7 @@ handle_files () {
7373
echo -e "${RED}ERROR [✖] Can't find the file: ${YELLOW}${FILELIST[index]}${NC}"
7474
exit 2
7575
fi
76-
if [ $index == 0 ]; then
76+
if [ "$index" == 0 ]; then
7777
COMMAND_FILES+=("-wholename ${FILELIST[index]}")
7878
else
7979
COMMAND_FILES+=("-o -wholename ${FILELIST[index]}")
@@ -125,9 +125,9 @@ check_additional_files () {
125125

126126
if [ -n "$FILES" ]; then
127127
if [ "$MAX_DEPTH" -ne -1 ]; then
128-
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
128+
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
129129
else
130-
FIND_CALL=('find' '.' '-type' 'f' '(' ${FILES} ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
130+
FIND_CALL=('find' '.' '-type' 'f' '(' "${FILES}" ')' '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
131131
fi
132132

133133
add_options
@@ -182,9 +182,9 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
182182
else
183183

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

190190
add_options

md/file1.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ www.google.com
77
[This is a broken link](https://www.exampleexample.cox)
88
<!-- markdown-link-check-disable-next-line -->
99
[This is another broken link](http://ignored-domain.com) but its ignored using a
10-
configuration file.
10+
configuration file.
11+
12+
This is to test URLencoding.
13+
<https://en.wikipedia.org/wiki/Glob_%28programming%29>
14+
<https://www.google.com/?q=url%20with%20a%20space>
1115

1216
### Alpha
1317

0 commit comments

Comments
 (0)