I have added Windows support using PowerShell. I made a script that does effectively what the GNU awk and grep commands do but in PowerShell for Windows compatibility.pull/553/head
parent
928e50e08f
commit
ddc402c48d
@ -1,3 +1,9 @@
|
|||||||
#$envVars = Get-Content '.\.env'
|
$envFile = Get-Content ".\.env.template"
|
||||||
#$envVars -split "="
|
|
||||||
Write-Host 'Updating the env is unsupported on Windows.'
|
$envFile -split "=" | Where-Object {$_ -notmatch '\"'} | Set-Content ".\envVarsbefSpl.txt"
|
||||||
|
Get-Content ".\envVarsbefSpl.txt" | Where-Object {$_ -notmatch '\#'} | Set-Content ".\envVarsN.txt"
|
||||||
|
Get-Content ".\envVarsN.txt" | Where-Object {$_ -ne ''} | Set-Content ".\envVars.txt"
|
||||||
|
Remove-Item ".\envVarsbefSpl.txt"
|
||||||
|
Remove-Item ".\envVarsN.txt"
|
||||||
|
|
||||||
|
Write-Host $nowSplit
|
Loading…
Reference in new issue