Skip to content

Commit 86df62a

Browse files
committed
Make source ISO detection case-insensitive
1 parent a0c3804 commit 86df62a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WinImageBuilder.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ function New-WindowsCloudImage {
16391639
try {
16401640
$windowsImageConfig = Get-WindowsImageConfig -ConfigFilePath $ConfigFilePath
16411641
$mountedWindowsIso = $null
1642-
if ($windowsImageConfig.wim_file_path.EndsWith('.iso')) {
1642+
if ($windowsImageConfig.wim_file_path.toLower().EndsWith('.iso')) {
16431643
$windowsImageConfig.wim_file_path = Get-Command $windowsImageConfig.wim_file_path `
16441644
-ErrorAction Ignore | Select-Object -ExpandProperty Source
16451645
if($windowsImageConfig.wim_file_path -eq $null){

0 commit comments

Comments
 (0)