[bash] Fix for the initial return code