mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
win: health.vim/check_ruby(): find gem.cmd
#6608
gem.cmd is not found by system(['gem', ...]), pass it to cmd.exe.
This commit is contained in:
@@ -445,7 +445,7 @@ function! s:check_ruby() abort
|
||||
endif
|
||||
call health#report_info('Host: '. host)
|
||||
|
||||
let latest_gem_cmd = 'gem list -ra ^neovim$'
|
||||
let latest_gem_cmd = has('win32') ? 'cmd /c gem list -ra ^^neovim$' : 'gem list -ra ^neovim$'
|
||||
let latest_gem = s:system(split(latest_gem_cmd))
|
||||
if s:shell_error || empty(latest_gem)
|
||||
call health#report_error('Failed to run: '. latest_gem_cmd,
|
||||
|
Reference in New Issue
Block a user