From a1f76a8e2b18edec475e94b13082d7b5bb4b7aea Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 24 Aug 2020 14:17:44 -0500 Subject: [PATCH] fix version --- lib/linter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/linter.sh b/lib/linter.sh index 2e71f4f6..f4540916 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -465,6 +465,9 @@ GetLinterVersions() { mapfile -t GET_VERSION_CMD < <(R --slave -e "r_ver <- R.Version()\$version.string; \ lintr_ver <- packageVersion('lintr'); \ glue::glue('lintr { lintr_ver } on { r_ver }')") + elif [[ ${LINTER} == "lua" ]]; then + # Semi standardversion command + mapfile -t GET_VERSION_CMD < <("${LINTER}" -v 2>&1) else # Standard version command mapfile -t GET_VERSION_CMD < <("${LINTER}" --version 2>&1)