Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensed driver is an executable, not zip #13

Open
KetchupBomb opened this issue Jan 25, 2023 · 0 comments
Open

Licensed driver is an executable, not zip #13

KetchupBomb opened this issue Jan 25, 2023 · 0 comments

Comments

@KetchupBomb
Copy link

The code block to download the licensed Nvidia driver:

# vGaming driver for g4
$Bucket = "nvidia-gaming"
$KeyPrefix = "windows/latest"
# download and extract driver
$Objects = Get-S3Object -BucketName $Bucket -KeyPrefix $KeyPrefix -Region us-east-1
foreach ($Object in $Objects) {
if ($Object.Size -ne 0) {
$LocalFileName = "C:\nvidia-driver\driver.zip"
Copy-S3Object -BucketName $Bucket -Key $Object.Key -LocalFile $LocalFileName -Region us-east-1
Expand-Archive $LocalFileName -DestinationPath $ExtractionPath
break
}
}

Assumes that the file in the S3 bucket is a zip file. It's not. It's an executable that unzips.

This logic ought to inspect the file(s) found when listing the Bucket contents, rather than assuming the file type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant