fzf: check for dpkg before checking for fzf in debian

Fixes #8253
Co-authored-by: Mariusz B <mb@binary-offensive.com>
master
Marc Cornellà 7 years ago committed by GitHub
parent 52f5878564
commit f56b678888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/fzf/fzf.plugin.zsh

@ -58,7 +58,7 @@ function setup_using_base_dir() {
function setup_using_debian_package() { function setup_using_debian_package() {
dpkg -s fzf &> /dev/null (( $+command[dpkg] )) && dpkg -s fzf &> /dev/null
if (( $? )); then if (( $? )); then
# Either not a debian based distro, or no fzf installed. In any case skip ahead # Either not a debian based distro, or no fzf installed. In any case skip ahead
return 1 return 1

Loading…
Cancel
Save