From 8f820e6cc36d186d890c166c108031018b9f3942 Mon Sep 17 00:00:00 2001 From: papajoker Date: Wed, 22 Feb 2017 20:08:54 +0100 Subject: [PATCH] path limit 3 --- lib/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.sh b/lib/util.sh index 9ad4673..02d51d8 100644 --- a/lib/util.sh +++ b/lib/util.sh @@ -151,7 +151,7 @@ check_for_error() { local _err="${2:-0}" local _function_menu="${3:-main_menu_online}" local _canceldlg=1 - local _fpath="${FUNCNAME[*]:1}()" + local _fpath="${FUNCNAME[*]:1:3}()" _fpath=" --${_fpath// /()<-}" ((${_err}!=0)) && _msg="[${_msg}][${_err}]" [[ -f "${ERR}" ]] && { @@ -165,7 +165,7 @@ check_for_error() { DIALOG " $_ErrTitle " --msgbox "\n${_msg}\n" 0 0 ($_main_menu_online) else - echo -e "$(date +%D\ %T) ${_msg} ${_fpath}]" >> "${LOGFILE}" + echo -e "$(date +%D\ %T) ${_msg} ${_fpath}" >> "${LOGFILE}" fi }