Use exit instead of return in fish profile

Older versions of Fish (such as those bundled with Ubuntu LTS 22.04) do
not support return outside of functions. We need to use the equivalent
exit instead.
This commit is contained in:
Jonathan Coates 2022-09-27 12:59:37 +01:00
parent ace9f261da
commit 0259702219
No known key found for this signature in database
GPG key ID: B9E431FF07C98D06

View file

@ -1,6 +1,6 @@
# Only execute this file once per shell. # Only execute this file once per shell.
if test -n "$__ETC_PROFILE_NIX_SOURCED" if test -n "$__ETC_PROFILE_NIX_SOURCED"
return exit
end end
set __ETC_PROFILE_NIX_SOURCED 1 set __ETC_PROFILE_NIX_SOURCED 1