fix(common.sh): Correctly report script name in tracebacks

Pretty simple typo.
This commit is contained in:
Michael Marineau 2013-07-05 21:34:11 -04:00
parent 9deade7470
commit 8af55de72c

View File

@ -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' \