Skip to content

Commit

Permalink
Merge pull request #47 from jnowalczyk/fix_directory_with_whitespaces
Browse files Browse the repository at this point in the history
update IFS to manage whitespaces in filepath
  • Loading branch information
haya14busa authored Jun 8, 2024
2 parents 52192aa + c108a12 commit 769bef8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ set -o noglob
FILES="$(git ls-files | ghglob ${INPUT_PATTERNS})"

Check notice on line 40 in entrypoint.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] entrypoint.sh#L40 <ShellCheck.SC2086>

Double quote to prevent globbing and word splitting.
Raw output
./entrypoint.sh:40:32: info: Double quote to prevent globbing and word splitting. (ShellCheck.SC2086)
set +o noglob

# To manage whitespaces in filepath
IFS=$(echo -en "\n\b")

Check warning on line 44 in entrypoint.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] entrypoint.sh#L44 <ShellCheck.SC3037>

In POSIX sh, echo flags are undefined.
Raw output
./entrypoint.sh:44:12: warning: In POSIX sh, echo flags are undefined. (ShellCheck.SC3037)

run_langtool() {
for FILE in ${FILES}; do
echo "Checking ${FILE}..." >&2
Expand Down

0 comments on commit 769bef8

Please sign in to comment.