Skip to content

Commit dac6ac2

Browse files
committed
[update] : msgsh fullpath
1 parent 912d636 commit dac6ac2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/msg.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -eu
44

55
script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && cd .. && pwd )"
66

7+
msgsh="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )/$(basename "${0}")"
8+
79
msg_type="info"
810
echo_opts=()
911
bash_debug=false
@@ -98,7 +100,7 @@ text() {
98100

99101
# Message functions
100102
msg_error() {
101-
bash "${script_path}/tools/msg.sh" -a "msg.sh" error "${1}"
103+
bash "${msgsh}" -a "msg.sh" error "${1}"
102104
}
103105

104106
# Check color

0 commit comments

Comments
 (0)