mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
9b71787be0
Apparently, bash with set -e deliberately ignores non-zero return codes from ! cmd, unless this is the last command. The workaround is to either use "! cmd || false', "or run ! cmd". Choose the latter, and require bash-core 1.5.0 (since this is when "run !" was added), replacing the older check. Alas I only learned this recently from the bash-core documentation. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>