error "called function ${FUNCNAME[1]} expected $expected params, but got $count by caller function ${FUNCNAME[2]} (line ${BASH_LINENO[2]})"
if["${count}"-ne"${expected}"];then
error "called function ${FUNCNAME[1]} expected ${expected} params, but got ${count} by caller function ${FUNCNAME[2]} (line ${BASH_LINENO[2]})"
exit 1
fi
}
check_argument_notempty(){
local param=$1
if[-z"$param"];then
if[-z"${param}"];then
error "called function ${FUNCNAME[1]} expected non-empty params, but some are empty set in line ${BASH_LINENO[0]}, eventually taken from caller function ${FUNCNAME[1]} (line ${BASH_LINENO[1]})"
exit 1
fi
...
...
@@ -125,7 +125,7 @@ comment_help() {
}
calc_statistics(){
flock -x"$LOCKFILE"cat"$STATFILE" | awk-F","'{cnt_invalid+=$3;total++} END {print total, cnt_invalid}'
flock -x"${LOCKFILE}"cat"${STATFILE}" | awk-F","'{cnt_invalid+=$3;total++} END {print total, cnt_invalid}'