aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Coates <git@squiddev.cc>2022-09-27 12:59:37 +0100
committerJonathan Coates <git@squiddev.cc>2022-09-27 12:59:37 +0100
commit02597022193ba46092fe5a4895235e49031be38e (patch)
tree1af51606a70ea0143bdf3232a62e4766597348f3
parentace9f261dad4fae55c1ec209c15d244165f5c07b (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.
-rw-r--r--scripts/nix-profile-daemon.fish.in2
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