mirror of
https://github.com/gaurav-nelson/github-action-markdown-link-check.git
synced 2024-09-11 11:25:47 +03:00
bash: update dep version
This commit is contained in:
parent
28631ee73c
commit
53c1dda67d
@ -8,7 +8,7 @@ YELLOW='\033[0;33m'
|
||||
BLUE='\033[0;34m'
|
||||
RED='\033[0;31m'
|
||||
|
||||
npm i -g markdown-link-check@3.8.3
|
||||
npm i -g markdown-link-check@3.8.4
|
||||
|
||||
declare -a FIND_CALL
|
||||
declare -a COMMAND_DIRS COMMAND_FILES
|
||||
@ -73,7 +73,7 @@ handle_files () {
|
||||
echo -e "${RED}ERROR [✖] Can't find the file: ${YELLOW}${FILELIST[index]}${NC}"
|
||||
exit 2
|
||||
fi
|
||||
if [ $index == 0 ]; then
|
||||
if [ "$index" == 0 ]; then
|
||||
COMMAND_FILES+=("-wholename ${FILELIST[index]}")
|
||||
else
|
||||
COMMAND_FILES+=("-o -wholename ${FILELIST[index]}")
|
||||
@ -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
|
||||
@ -182,9 +182,9 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then
|
||||
else
|
||||
|
||||
if [ "$5" -ne -1 ]; then
|
||||
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-maxdepth' "${MAX_DEPTH}" '-exec' 'markdown-link-check' '{}')
|
||||
else
|
||||
FIND_CALL=('find' ${FOLDERS} '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
FIND_CALL=('find' "${FOLDERS}" '-name' '*'"${FILE_EXTENSION}" '-not' '-path' './node_modules/*' '-exec' 'markdown-link-check' '{}')
|
||||
fi
|
||||
|
||||
add_options
|
||||
|
Loading…
Reference in New Issue
Block a user