.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
Get-Content C:\Scripts\Secret\unlock.txt | Where-Object {$_.length -gt 0} | Where-Object {!$_.StartsWith("#")} | ForEach-Object {
|
Get-Content C:\Scripts\Secrets\unlock.txt | Where-Object {$_.length -gt 0} | Where-Object {!$_.StartsWith("#")} | ForEach-Object {
|
||||||
$var = $_.Split('=',2).Trim()
|
$var = $_.Split('=',2).Trim()
|
||||||
New-Variable -Scope Script -Name $var[0] -Value $var[1]
|
New-Variable -Scope Script -Name $var[0] -Value $var[1]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user