cmcmd: Fix typo in RunCommand logic

Fix logic added by !1470 (merged).

Issue: #17444 (closed)

Merge request reports

Loading