Files
kata-containers/tools
Fabiano Fidêncio f2c8f66dcd kata-deploy: Fix cleanup_and_fail returning non-numeric value
cleanup_and_fail() prints nothing to stdout and returns 1. The
callers used `return "$(cleanup_and_fail ...)"` which expands to
`return ""`, causing bash to error with "numeric argument required".

Replace the command substitution with a compound command that calls
the cleanup function and propagates its exit code via `$?`.

Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
2026-04-27 07:15:57 +02:00
..