File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -260,3 +260,6 @@ GitHub Action - Markdown link check follows the [GitHub recommended versioning s
260260 <img src="https://i.imgur.com/1Q1YoHz.gif" alt="Buy me a coffee.">
261261 </a>
262262</p>
263+
264+
265+ See https://pubsadasdsadasdasdasdas.aasasdas.odasdarg/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ check_additional_files () {
128128
129129 if [ -n " $FILES " ]; then
130130 if [ " $MAX_DEPTH " -ne -1 ]; then
131- FIND_CALL=(' find' ' . ' ' -type' ' f' ' (' ${FILES} ' )' ' -not' ' -path' ' ./node_modules/*' ' -maxdepth' " ${MAX_DEPTH} " ' -exec' ' markdown-link-check' ' {}' )
131+ FIND_CALL=(' find' ${FOLDERS} ' -type' ' f' ' (' ${FILES} ' )' ' -not' ' -path' ' ./node_modules/*' ' -maxdepth' " ${MAX_DEPTH} " ' -exec' ' markdown-link-check' ' {}' )
132132 else
133- FIND_CALL=(' find' ' . ' ' -type' ' f' ' (' ${FILES} ' )' ' -not' ' -path' ' ./node_modules/*' ' -exec' ' markdown-link-check' ' {}' )
133+ FIND_CALL=(' find' ${FOLDERS} ' -type' ' f' ' (' ${FILES} ' )' ' -not' ' -path' ' ./node_modules/*' ' -exec' ' markdown-link-check' ' {}' )
134134 fi
135135
136136 add_options
@@ -164,6 +164,10 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
164164 git fetch origin " ${BASE_BRANCH} " --depth=1 > /dev/null
165165 MASTER_HASH=$( git rev-parse origin/" ${BASE_BRANCH} " )
166166
167+ if [ -z " $FOLDERS " ]; then
168+ FOLDERS=" ."
169+ fi
170+
167171 FIND_CALL=(' markdown-link-check' )
168172
169173 add_options
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ www.google.com
66[ This is a broken link] ( https://www.exampleexample.cox )
77
88[ This is another broken link] ( http://ignored-domain.com ) but its ignored using a
9- configuration file.
9+ configuration file.
1010
1111### Alpha
1212
@@ -22,4 +22,6 @@ But [missing files are reported](missing-example.js).
2222[ alpha ] : #alpha
2323[ charlie ] : #charlie
2424
25- External file: [ Charlie] ( ./file2.md/#charlie )
25+ External file: [ Charlie] ( ./file2.md/#charlie )
26+
27+ Modified.
You can’t perform that action at this time.
0 commit comments