Skip to content

Commit

Permalink
fix: use shellescape() in system call and resolve typo (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Nov 16, 2020
1 parent bcf9a57 commit 3b55111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/doge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ endfunction
"" @public
" Install the necessary dependencies.
function! doge#install() abort
for l:filename in ['vim-doge', 'vim-dog.exe']
for l:filename in ['vim-doge', 'vim-doge.exe']
let l:filepath = g:doge_dir . '/bin/' . l:filename
if filereadable(l:filepath)
let l:binary_version = doge#helpers#trim(system(l:filepath . ' --version'))
let l:binary_version = doge#helpers#trim(system(shellescape(l:filepath) . ' --version'))
let l:local_version = doge#helpers#trim(readfile(g:doge_dir . '/.version')[0])
if l:binary_version ==# l:local_version
echom '[DoGe] already using latest version, skipping binary download'
Expand Down

0 comments on commit 3b55111

Please sign in to comment.