From 6ac933dc8c9b0592cb5dea547edcdd9463f1eaf5 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 3 Sep 2020 09:34:39 -0500 Subject: [PATCH] fix print --- lib/linterVersions.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/linterVersions.sh b/lib/linterVersions.sh index bf0b74c0..3398ed42 100755 --- a/lib/linterVersions.sh +++ b/lib/linterVersions.sh @@ -15,9 +15,7 @@ source /action/lib/log.sh # Source the function script(s) ########### # GLOBALS # ########### -MAIN_FILE='/action/lib/linter.sh' # Main file for super-linter VERSION_FILE='/action/lib/linter-versions.txt' # File to store linter versions -DEFAULT_IFS="${IFS}" # Get the Default IFS for updating ARM_TTK_PSD1='/usr/bin/arm-ttk' # Powershell var ####################################### @@ -111,7 +109,7 @@ WriteFile() { ################################# # Write the data to output file # ################################# - WRITE_CMD=$(echo "${LINTER}: ${VERSION}" >> "${VERSION_FILE}" 2>&1) + echo "${LINTER}: ${VERSION}" >> "${VERSION_FILE}" 2>&1 ####################### # Load the error code # @@ -122,7 +120,7 @@ WriteFile() { # Check the shell for errors # ############################## if [ $ERROR_CODE -ne 0 ]; then - fatal "Failed to write data to file:[${WRITE_CMD}]" + fatal "Failed to write data to file!" fi } ################################################################################