diff --git a/sh/lint/lint.sh b/sh/lint/lint.sh index 9f34299..5448563 100644 --- a/sh/lint/lint.sh +++ b/sh/lint/lint.sh @@ -1,14 +1,17 @@ # lint code rwx_lint() { local path="${1}" - local code + [ -n "${path}" ] || exit 1 + rwx_lint_clean set \ "python" \ "shell" + local code for code in "${@}"; do rwx_log "${code}" "rwx_lint_${code}" "${path}" done + rwx_lint_clean } # clean