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