Skip to content

Commit 6fc337b

Browse files
committed
environment specific paths for the install log
1 parent 98a3075 commit 6fc337b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/OmniSharp.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ function! OmniSharp#Install(...) abort
429429
let l:http = g:OmniSharp_server_stdio ? '' : '-H'
430430
let l:version = a:0 > 0 ? '-v ' . shellescape(a:1) : ''
431431
let l:location = shellescape(OmniSharp#util#ServerDir())
432-
let l:logfile = OmniSharp#log#GetLogDir() . '\install.log'
433432

434433
if has('win32')
434+
let l:logfile = OmniSharp#log#GetLogDir() . '\install.log'
435435
let l:script = shellescape(
436436
\ s:plugin_root_dir . '\installer\omnisharp-manager.ps1')
437437
let l:version_file_location = l:location . '\OmniSharpInstall-version.txt'
@@ -440,6 +440,7 @@ function! OmniSharp#Install(...) abort
440440
\ 'powershell -ExecutionPolicy Bypass -File %s %s -l %s %s',
441441
\ l:script, l:http, l:location, l:version)
442442
else
443+
let l:logfile = OmniSharp#log#GetLogDir() . '/install.log'
443444
let l:script = shellescape(
444445
\ s:plugin_root_dir . '/installer/omnisharp-manager.sh')
445446
let l:mono = g:OmniSharp_server_use_mono ? '-M' : ''

0 commit comments

Comments
 (0)