mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 16:51:05 -05:00
Throw a fatal error if tflint --init fails
This commit is contained in:
parent
bf67bd6c01
commit
8607445fb4
1 changed files with 2 additions and 3 deletions
|
@ -527,11 +527,10 @@ function RunAdditionalInstalls() {
|
||||||
# Check the shell for errors #
|
# Check the shell for errors #
|
||||||
##############################
|
##############################
|
||||||
if [ "${ERROR_CODE}" -ne 0 ]; then
|
if [ "${ERROR_CODE}" -ne 0 ]; then
|
||||||
# Error
|
fatal "ERROR! Failed to run:[tflint --init] at location:[${WORKSPACE_PATH}]. BUILD_CMD:[${BUILD_CMD}]"
|
||||||
warn "ERROR! Failed to run:[tflint --init] at location:[${WORKSPACE_PATH}]"
|
|
||||||
warn "BUILD_CMD:[${BUILD_CMD}]"
|
|
||||||
else
|
else
|
||||||
info "Successfully ran:[tflint --init] in workspace:[${WORKSPACE_PATH}]"
|
info "Successfully ran:[tflint --init] in workspace:[${WORKSPACE_PATH}]"
|
||||||
|
debug "BUILD_CMD:[${BUILD_CMD}]"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue