mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-18 05:36:24 +00:00
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>