functions-fetch_view: fix incorrect variable, return instead of exit

- Calling 'exit' in a shell function exits the current shell :/