Skip to content

Commit

Permalink
Add: Support for relative image paths, warn if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Windos committed Mar 1, 2020
1 parent b9179ca commit 460c57c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BurntToast/Private/Optimize-BTImageSource.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function Optimize-BTImageSource {

$NewFilePath
} else {
$Source
try {
(Get-Item -Path $Source -ErrorAction Stop).FullName
} catch {
Write-Warning -Message "The image source '$Source' doesn't exist, failed back to icon."
}
}
}

0 comments on commit 460c57c

Please sign in to comment.