Skip to content

Commit

Permalink
Assert brew availability instead of flag checking
Browse files Browse the repository at this point in the history
  • Loading branch information
scorphus committed Apr 13, 2022
1 parent df34386 commit d361f27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions conf.d/brew.fish
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ for brew_path in $brew_paths
end

if test -f $brew_path/brew
set brew_found true
set PATH $brew_path $PATH
break
end
end

if not set -q brew_found
if not type -q brew
echo "Please install 'brew' first!"
end

0 comments on commit d361f27

Please sign in to comment.