Bash Function Return Exit Code