mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-25 10:10:56 -05:00
fix print
This commit is contained in:
parent
165b29cbe1
commit
6ac933dc8c
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
################################################################################
|
||||
|
|
Loading…
Reference in a new issue