useless if

This commit is contained in:
Mylloon 2024-07-02 11:56:17 +02:00
parent 86eb7c8b30
commit b263b8d5d5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -2,11 +2,6 @@ param (
[string]$script [string]$script
) )
if (-not $script) {
Write-Host "No script found"
exit
}
$fileName = "$script.bat" $fileName = "$script.bat"
$url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName" $url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName"
$filePath = Join-Path -Path $env:TEMP -ChildPath $fileName $filePath = Join-Path -Path $env:TEMP -ChildPath $fileName