diff --git a/sh/lint/shellcheck.sh b/sh/lint/shellcheck.sh index 0253062..0cbe758 100644 --- a/sh/lint/shellcheck.sh +++ b/sh/lint/shellcheck.sh @@ -3,12 +3,10 @@ rwx_shellcheck() { local file module modules path file="$(mktemp)" modules="$(rwx_find_shell "${root}")" - while IFS= read -r module; do + printf "%s\n" "${modules}" | while IFS= read -r module; do path="${root}/${module}" echo ". \"${path}\"" >>"${file}" - done <