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.
This commit is contained in:
Severin Strobl
2021-02-19 00:29:23 +01:00
committed by GitHub
parent 70b81dc48d
commit 0da2b82df2

View File

@@ -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