default value
This commit is contained in:
parent
7784ba5548
commit
ed7f9e79ae
|
@ -11,7 +11,7 @@ log() {
|
||||||
}
|
}
|
||||||
log_error() {
|
log_error() {
|
||||||
local error_msg=${1}
|
local error_msg=${1}
|
||||||
local error_file=${2:""}
|
local error_file=${2:-""}
|
||||||
|
|
||||||
if [ -n "${error_file}" ] && [ -f "${error_file}" ]; then
|
if [ -n "${error_file}" ] && [ -f "${error_file}" ]; then
|
||||||
printf "\n### %s\n" "${error_msg}" >&2
|
printf "\n### %s\n" "${error_msg}" >&2
|
||||||
|
|
Loading…
Reference in a new issue