From 0da2b82df230b25883709287c4ef217029c22a7f Mon Sep 17 00:00:00 2001 From: Severin Strobl Date: Fri, 19 Feb 2021 00:29:23 +0100 Subject: Fixed conditional in match_flag for fish env (#21679) An attempt to fix the conditional was made in 5a771bc8ad, yet this broke the conditional completely. --- share/spack/setup-env.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/setup-env.fish b/share/spack/setup-env.fish index d95b08ea9f..7bbc8f8485 100755 --- a/share/spack/setup-env.fish +++ b/share/spack/setup-env.fish @@ -253,7 +253,7 @@ function match_flag -d "checks all combinations of flags ocurring inside of a st set -l _a (string sub -s 2 (string trim "x$argv[1]")) set -l _b (string sub -s 2 (string trim "x$argv[2]")) - if test -z "$_a" or test -z "$_b" + if test -z "$_a"; or test -z "$_b" return 0 end -- cgit v1.2.3-70-g09d2