mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
win: fixed checking prerequsitives.
This commit is contained in:
parent
f0e5708b1b
commit
94f91ccd4d
|
@ -190,8 +190,11 @@ function loginfo($msg) {
|
|||
}
|
||||
|
||||
function program_exists($exe) {
|
||||
cmd.exe /c where.exe "$exe" 2>&1>$null
|
||||
return $LASTEXITCODE -eq 0
|
||||
try {
|
||||
Get-Command "$exe" -CommandType Application 2>&1>$null
|
||||
} catch [CommandNotFoundException] {
|
||||
}
|
||||
return $?
|
||||
}
|
||||
|
||||
function to_unix_path($path) {
|
||||
|
|
Loading…
Reference in a new issue