From dac6ac2d0d1217ad5089fc0e11b33e6630f76ad8 Mon Sep 17 00:00:00 2001 From: hayao Date: Tue, 6 Apr 2021 21:42:29 +0900 Subject: [PATCH] [update] : msgsh fullpath --- tools/msg.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/msg.sh b/tools/msg.sh index db40fb41..198404da 100755 --- a/tools/msg.sh +++ b/tools/msg.sh @@ -4,6 +4,8 @@ set -eu script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )" +msgsh="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/$(basename "${0}")" + msg_type="info" echo_opts=() bash_debug=false @@ -98,7 +100,7 @@ text() { # Message functions msg_error() { - bash "${script_path}/tools/msg.sh" -a "msg.sh" error "${1}" + bash "${msgsh}" -a "msg.sh" error "${1}" } # Check color -- 2.11.0