Skip to content

Commit

Permalink
Prevent executing empty string #115
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Dec 25, 2021
1 parent db4e7d6 commit e01adeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let s:VERSION = '9.0.1'
endfunction

function! s:InstallCLI(use_external_python)
if !s:autoupdate_cli && executable(s:wakatime_cli)
if !s:autoupdate_cli && !empty(s:wakatime_cli) && executable(s:wakatime_cli)
return
endif

Expand Down
1 change: 0 additions & 1 deletion scripts/install_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def main(home=None):
try:
os.symlink(getCliLocation(), cli)
except:
# May not have permission on Windows
pass


Expand Down

0 comments on commit e01adeb

Please sign in to comment.