Bash Script Functions Return Value