Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
fix #10 -- not saving to specified path
Browse files Browse the repository at this point in the history
  • Loading branch information
hjorslev committed Apr 4, 2020
1 parent 0691c0a commit f8657dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Public/Get-UrlScanioScreenshot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Saves screenshot of specified id as C:\temp\b14db0aa-013c-4aa9-ad5a-ec947a2278c7

if (Test-Path $Path -PathType Container) {
try {
Invoke-WebRequest " https://urlscan.io/screenshots/$id.png" -OutFile "$id.png" -UseBasicParsing
Invoke-WebRequest " https://urlscan.io/screenshots/$id.png" -OutFile "$($Path)\$id.png" -UseBasicParsing
Write-Verbose "Screenshot saved to $Path\$id.png"
} catch {
$_.Exception.Message
Expand Down

0 comments on commit f8657dd

Please sign in to comment.