updated the logic to show the command output.

When NOLINKS is set to false, always show the output of every command.