5c07d390 cmcmd: Fix typo in RunCommand logic Acked-by: Kitware Robot <[email protected]> Merge-request: !1473
@@ -1595,7 +1595,7 @@ static bool RunCommand(const char* comment, std::vector<std::string>& command,
retCode == 0 || (retCodeOkay && retCodeOkay(retCode));
bool const success = commandResult && retCodeSuccess;
if (retCodeOut) {
- if (commandResult || !retCodeOkay) {
+ if (commandResult || !retCodeSuccess) {
*retCodeOut = retCode;
} else {
*retCodeOut = -1;