/tools/twn: fix apitrace show command now showing the latest trace

This commit is contained in:
veclav talica 2024-10-07 19:18:38 +03:00
parent b12faa6a44
commit 84bb1c8b0e

View File

@ -26,7 +26,7 @@ case "$1" in
./$exe "${@:3}" ./$exe "${@:3}"
;; ;;
show ) traces=( "$exe.*.trace" ) show ) traces=( $exe.*.trace )
trace=${traces[-1]} trace=${traces[-1]}
if [ "$trace" = "$exe.*.trace" ]; then if [ "$trace" = "$exe.*.trace" ]; then
trace="$exe.trace" trace="$exe.trace"