Skip to content

Commit 2996c34

Browse files
committed
fix(install): pass UserInstall parameter to Main function
Fix PSScriptAnalyzer PSReviewUnusedParameter warning by explicitly passing the script-level parameter to the Main function.
1 parent 3f4eea2 commit 2996c34

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ function Test-Checksum {
123123
}
124124

125125
function Main {
126+
param([switch]$UserInstall)
126127
Write-Host ""
127128
Write-Host "========================================" -ForegroundColor Blue
128129
Write-Host " dtvem installer" -ForegroundColor Blue
@@ -310,4 +311,4 @@ function Main {
310311
}
311312
}
312313

313-
Main
314+
Main -UserInstall:$UserInstall

0 commit comments

Comments
 (0)