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