improve variable names
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Jérémy Lecour 2019-03-21 12:46:46 +01:00 committed by Jérémy Lecour
parent bad0d7fa98
commit 3530d2c34f

View file

@ -127,14 +127,14 @@ IS_RSYNC=1
# logging function
failed() {
test=$1
check_name=$1
shift
comments=$@
checl_comments=$@
if [ -n "${comments}" ] && [ "${VERBOSE}" = 1 ]; then
printf "%s FAILED! %s\n" "${test}" "${comments}" 2>&1
if [ -n "${check_comments}" ] && [ "${VERBOSE}" = 1 ]; then
printf "%s FAILED! %s\n" "${check_name}" "${check_comments}" 2>&1
else
printf "%s FAILED!\n" "${test}" 2>&1
printf "%s FAILED!\n" "${check_name}" 2>&1
fi
}