From 958f70fe67a47a65646cbf4251539234fe549d25 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 31 Aug 2020 10:11:12 -0500 Subject: [PATCH] its real picky --- lib/worker.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/worker.sh b/lib/worker.sh index 6a172bcf..2e00c952 100755 --- a/lib/worker.sh +++ b/lib/worker.sh @@ -233,10 +233,9 @@ function LintCodebase() { # Corner case for C# as it writes to tty and not stdout # ######################################################### elif [[ ${FILE_TYPE} == "CSHARP" ]]; then - info "got into the csharp loop" LINT_CMD=$( - cd "${GITHUB_WORKSPACE}" || exit - ${LINTER_COMMAND} "${FILE}" | tee /dev/tty2 2>&1; exit "${PIPESTATUS[0]}" + cd "${DIR_NAME}" || exit + ${LINTER_COMMAND} "${FILE_NAME}" | tee /dev/tty2 2>&1; exit "${PIPESTATUS[0]}" ) else ################################ @@ -481,10 +480,9 @@ function TestCodebase() { # Corner case for C# as it writes to tty and not stdout # ######################################################### elif [[ ${FILE_TYPE} == "CSHARP" ]]; then - info "got into the csharp loop" LINT_CMD=$( - cd "${GITHUB_WORKSPACE}" || exit - ${LINTER_COMMAND} "${FILE}" | tee /dev/tty2 2>&1; exit "${PIPESTATUS[0]}" + cd "${DIR_NAME}" || exit + ${LINTER_COMMAND} "${FILE_NAME}" | tee /dev/tty2 2>&1; exit "${PIPESTATUS[0]}" ) else ################################