We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b9d7da + 0d75bf5 commit 760c1bdCopy full SHA for 760c1bd
hooks/command
@@ -35,7 +35,9 @@ if [[ -z ${files:-} ]] ; then
35
fi
36
37
# Read in the options to pass to shellcheck
38
-mapfile -t options<<<"$(plugin_read_list OPTIONS)"
+while IFS=$'\n' read -r option ; do
39
+ options+=("$option")
40
+done < <(plugin_read_list OPTIONS)
41
42
echo "+++ Running shellcheck on ${#files[@]} files"
43
if docker run --rm -v "$PWD:/mnt" --workdir "/mnt" koalaman/shellcheck "${options[@]+${options[@]}}" "${files[@]}" ; then
0 commit comments