fix(lint): change Python job runner from Windows to Linux and update shell to Bash
fix(script): add CmdletBinding attribute to Set-GuestInfoIP function for better process support
This commit is contained in:
@@ -146,6 +146,7 @@ if (-not (Test-Path $OutputDir)) {
|
||||
}
|
||||
|
||||
function Set-GuestInfoIP {
|
||||
[CmdletBinding(SupportsShouldProcess)]
|
||||
param([string]$VmxPath, [string]$IP, [string]$Mask, [string]$Gw)
|
||||
$keys = @('guestinfo.ip-assignment', 'guestinfo.netmask', 'guestinfo.gateway')
|
||||
$lines = (Get-Content -LiteralPath $VmxPath -Encoding UTF8) |
|
||||
|
||||
Reference in New Issue
Block a user