Add shell script linting with shellcheck for better portability
This commit is contained in:
parent
ab60e702d2
commit
886a6bdbe0
15 changed files with 87 additions and 57 deletions
|
@ -1,8 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
IFS=$'\n'
|
||||
files=( $( git ls-files 'docs/*.md' *.md ) )
|
||||
unset IFS
|
||||
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"
|
||||
files=()
|
||||
while IFS='' read -r line; do files+=("$line"); done < <(git ls-files "${SCRIPT_DIR}"/../'docs/*.md' "${SCRIPT_DIR}"/../*.md)
|
||||
|
||||
|
||||
errors=()
|
||||
for f in "${files[@]}"; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue