From 02597022193ba46092fe5a4895235e49031be38e Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 27 Sep 2022 12:59:37 +0100 Subject: [PATCH] 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. --- scripts/nix-profile-daemon.fish.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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