mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
fix(common.sh): Correctly report script name in tracebacks
Pretty simple typo.
This commit is contained in:
parent
9deade7470
commit
8af55de72c
@ -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' \
|
||||
|
Loading…
Reference in New Issue
Block a user