mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
69d599ddbd
runc in this file is actually a function that does `run runc ...`, and `run` sets variable `$status` as the exit code, so `$status` is what should be checked. If calling runc directly (as in `__runc ...`), then $? is legit. While at it, remove an obsoleted comment, and an unneeded `ret=$?` assignment (check `$?` directly). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>