Skip to content

Commit

Permalink
fixed the prev commit (withOpenCV)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixstars-momoko committed Jul 22, 2024
1 parent fc350ef commit 30d3d62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer/tools/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function CheckSDKVersion(){
function InstallEarlierVersion(){
param(
[string]$sdkversion,
[bool]$InstallOpenCV,
[bool]$withOpenCV,
[string]$referenceVersion = "v24.05.99"
)

Expand All @@ -146,7 +146,7 @@ function InstallEarlierVersion(){
$prevInstallerURL = "${baseUrl}${version}/installer.ps1"
$prevInstallerPath = "$tempWorkDir/old_installer.ps1"
Invoke-WebRequest -Uri $prevInstallerURL -OutFile $prevInstallerPath
if ($InstallOpenCV){
if ($withOpenCV){
& $prevInstallerPath -version:$sdkversion -InstallOpenCV -user:$Env:UserName
}else{
& $prevInstallerPath -version:$sdkversion -user:$Env:UserName
Expand Down Expand Up @@ -445,7 +445,7 @@ function Invoke-Script {
}

Write-Host "Sensing-Dev $version will be installed." -ForegroundColor Green
$installed = InstallEarlierVersion -sdkversion $version
$installed = InstallEarlierVersion -sdkversion $version -withOpenCV $InstallOpenCV
if ( $installed ){
# Exit here if earlier version is installed.
Write-Host "Install successfully."
Expand Down

0 comments on commit 30d3d62

Please sign in to comment.