Skip to content

Commit

Permalink
Merge pull request #227 from tegonal/bugfix/suppress-if-zsh-is-not-av…
Browse files Browse the repository at this point in the history
…ailable

suppress error if zsh is not installed
  • Loading branch information
robstoll authored Oct 28, 2024
2 parents 9132fe4 + c85a5f9 commit 5bedc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function install() {
fi

local fpath_output
fpath_output=$(zsh -c 'echo $fpath') || echo ""
fpath_output=$(zsh -c 'echo $fpath' 2> /dev/null) || echo ""
if [[ -n "$fpath_output" ]]; then
local vendorPath
vendorPath=$(grep -oE "[^ ]+vendor-completions" <<<"$fpath_output")
Expand Down

0 comments on commit 5bedc22

Please sign in to comment.