[PATCH 27/47] bash scripts: fix redundant exit code check