From 0507b046effba5849dc26965c76fadf81c29dd3c Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 4 Jan 2021 17:24:36 +0100 Subject: [PATCH] completions/pkg: Only exit for Solaris, not everything-but-FreeBSD In e8b67050679da41128fd8024420cfb9536acf78d this was made to exit if not on FreeBSD because Solaris has a tool called "pkg" that apparently "isn't worth supporting". Since at least DragonflyBSD also uses FreeBSD's pkg thing, let's turn that check around. --- share/completions/pkg.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/completions/pkg.fish b/share/completions/pkg.fish index e2e03d0a5..87ff822df 100644 --- a/share/completions/pkg.fish +++ b/share/completions/pkg.fish @@ -1,6 +1,8 @@ # Completions for pkgng package manager -if uname | not string match -q FreeBSD +# Solaris has a thing called "pkg", it works quite differently, +# and spews errors when called like this. +if uname | string match -q SunOS exit end