Skip to content

Commit 393e030

Browse files
authored
Merge pull request #115 from jellybean13/master
Fix potential execution error
2 parents 1bdd04c + 1351fe4 commit 393e030

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

powershell/create_custom_esxi_iso.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ $spec | ConvertTo-Json | Set-Content -NoNewline -Path $ESXICustomIsoSpec
4343

4444
# Build Depo List
4545
$ESXIDepots = '"' + $(($ESXIDriverPaths+=$ESXIBaseImagePath) -join '","') + '"'
46+
$ESXICustomIsoSpec = '"' + $ESXICustomIsoSpec + '"'
47+
$ESXICustomIsoPath = '"' + $ESXICustomIsoPath + '"'
4648

4749
# Create New Custom ISO
4850
Write-Host -Foreground green "`nCreating Custom ESXi ISO and saving to ${ESXICustomIsoPath} ...`n"
49-
Invoke-Expression "New-IsoImage -Depots $ESXIDepots -SoftwareSpec $ESXICustomIsoSpec -Destination $ESXICustomIsoPath"
51+
Invoke-Expression "New-IsoImage -Depots $ESXIDepots -SoftwareSpec $ESXICustomIsoSpec -Destination $ESXICustomIsoPath"

0 commit comments

Comments
 (0)