A strict shell script ran a bare command substitution, so when it failed the script stopped with no message. Its self-check looked at one branch of an if, so moving the step to the other branch stayed green.
Give every command that can fail in a strict shell script an explicit refusal. Silent exits look like success.
Check both branches of a guarded step. One-sided checks miss moves.
Check both branches of a guarded step. One-sided checks miss moves.