diff --git a/share/completions/apt.fish b/share/completions/apt.fish index 39aadc0b1..9a2d89c54 100644 --- a/share/completions/apt.fish +++ b/share/completions/apt.fish @@ -2,7 +2,7 @@ # macOS has a /usr/bin/apt that is something else entirely: # (apt - Returns the path to a Java home directory from the current user's settings) -if [ (uname -s) = Darwin -a (command -v apt) = /usr/bin/apt ] +if [ "$(uname -s)" = Darwin -a "$(command -s apt)" = /usr/bin/apt ] exit 1 end