mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 20:52:12 -05:00
commit
24f9026021
2 changed files with 7 additions and 15 deletions
13
Dockerfile
13
Dockerfile
|
@ -59,21 +59,14 @@ RUN apk add --update --no-cache \
|
|||
go \
|
||||
icu-libs \
|
||||
jq \
|
||||
libc-dev \
|
||||
libxml2-utils \
|
||||
libc-dev libxml2-utils \
|
||||
make \
|
||||
musl-dev \
|
||||
npm nodejs-current \
|
||||
openjdk8-jre \
|
||||
perl \
|
||||
php7 \
|
||||
php7-phar \
|
||||
php7-json \
|
||||
php7-mbstring \
|
||||
php7-tokenizer \
|
||||
php7-ctype \
|
||||
php7-curl \
|
||||
php7-dom \
|
||||
php7 php7-phar php7-json php7-mbstring \
|
||||
php7-tokenizer php7-ctype php7-curl php7-dom \
|
||||
py3-setuptools \
|
||||
readline-dev \
|
||||
ruby ruby-dev ruby-bundler ruby-rdoc \
|
||||
|
|
|
@ -125,7 +125,6 @@ LANGUAGE_ARRAY=('ANSIBLE' 'ARM' 'BASH' 'CLOUDFORMATION' 'CLOJURE' 'COFFEESCRIPT'
|
|||
############################################
|
||||
LINTED_LANGUAGES_ARRAY=() # Will be filled at run time with all languages that were linted
|
||||
|
||||
|
||||
###################
|
||||
# GitHub ENV Vars #
|
||||
###################
|
||||
|
@ -990,7 +989,7 @@ Footer() {
|
|||
##################
|
||||
# Print if not 0 #
|
||||
##################
|
||||
if [ "${!ERROR_COUNTER}" -ne 0 ]; then
|
||||
if [[ "${!ERROR_COUNTER}" -ne 0 ]]; then
|
||||
# We found errors in the language
|
||||
###################
|
||||
# Print the goods #
|
||||
|
@ -1004,7 +1003,7 @@ Footer() {
|
|||
######################################
|
||||
# Check if we validated the langauge #
|
||||
######################################
|
||||
elif [ "${!ERROR_COUNTER}" -eq 0 ] && [[ "${UNIQUE_LINTED_ARRAY[*]}" =~ ${LANGUAGE} ]]; then
|
||||
elif [[ "${!ERROR_COUNTER}" -eq 0 ]] && [[ "${UNIQUE_LINTED_ARRAY[*]}" =~ ${LANGUAGE} ]]; then
|
||||
# No errors found when linting the language
|
||||
CallStatusAPI "${LANGUAGE}" "success"
|
||||
fi
|
||||
|
@ -1026,7 +1025,7 @@ Footer() {
|
|||
# build the variable
|
||||
ERRORS_FOUND_LANGUAGE="ERRORS_FOUND_${LANGUAGE}"
|
||||
# Check if error was found
|
||||
if [ "${!ERRORS_FOUND_LANGUAGE}" -ne 0 ]; then
|
||||
if [[ "${!ERRORS_FOUND_LANGUAGE}" -ne 0 ]]; then
|
||||
# Failed exit
|
||||
echo -e "${NC}${F[R]}Exiting with errors found!${NC}"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue