diff options
author | Jonathan Coates <git@squiddev.cc> | 2022-09-27 12:59:37 +0100 |
---|---|---|
committer | Jonathan Coates <git@squiddev.cc> | 2022-09-27 12:59:37 +0100 |
commit | 02597022193ba46092fe5a4895235e49031be38e (patch) | |
tree | 1af51606a70ea0143bdf3232a62e4766597348f3 /scripts | |
parent | ace9f261dad4fae55c1ec209c15d244165f5c07b (diff) |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/nix-profile-daemon.fish.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-profile-daemon.fish.in b/scripts/nix-profile-daemon.fish.in index 56d851a9c..3d587dd7f 100644 --- a/scripts/nix-profile-daemon.fish.in +++ b/scripts/nix-profile-daemon.fish.in @@ -1,6 +1,6 @@ # Only execute this file once per shell. if test -n "$__ETC_PROFILE_NIX_SOURCED" - return + exit end set __ETC_PROFILE_NIX_SOURCED 1 |