Bug 1625933 Only complain about unmanaged fzf if it was found r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D68792

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Simon Fraser 2020-03-30 13:49:57 +00:00
parent 08f49a5a88
commit 5736cab8ce

View File

@ -228,7 +228,7 @@ def fzf_bootstrap(update=False):
# Bug 1623197: We only want to run fzf's `install` if it's not in the $PATH
# Swap to os.path.commonpath when we're not on Py2
if update and not fzf_bin.startswith(fzf_path):
if fzf_bin and update and not fzf_bin.startswith(fzf_path):
print("fzf installed somewhere other than {}, please update manually".format(fzf_path))
sys.exit(1)