From 8af55de72c9a2447b458bd8623a28d5835324c49 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 5 Jul 2013 21:34:11 -0400 Subject: [PATCH] fix(common.sh): Correctly report script name in tracebacks Pretty simple typo. --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index e1a83dc40e..a72e7a8451 100644 --- a/common.sh +++ b/common.sh @@ -82,7 +82,7 @@ _dump_trace() { ! (( p -= ${BASH_ARGC[${n} - 1]} )) fi if [[ ${n} == ${#FUNCNAME[@]} ]]; then - error "script called: ${0##/*} ${args}" + error "script called: ${0##*/} ${args}" error "Backtrace: (most recent call is last)" else error "$(printf ' file %s, line %s, called: %s %s' \