Added PowerShell Script

pull/553/head
owengaspard 3 years ago
parent c4274d1d14
commit 928e50e08f

@ -11,13 +11,13 @@ log = logging.getLogger(__name__)
def envUpdate(): def envUpdate():
if path.exists(".env.template"): if path.exists(".env.template"):
if platform == "win32" or platform == "cygwin": if platform == "win32" or platform == "cygwin":
#envTemplate = subprocess.run( envTemplate = subprocess.run(
# [r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe', [r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe',
# r'.\envUpdateWin.ps1'], r'.\envUpdateWin.ps1'],
# stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
# shell=True shell=True
#) print("Updating .env is unsupported on Windows.")
print("Updating is not yet supported on Windows.") )
return return
elif platform == "darwin" or platform == "linux": elif platform == "darwin" or platform == "linux":
envTemplate = subprocess.check_output( envTemplate = subprocess.check_output(

@ -1,2 +1,3 @@
$envVars = Get-Content '.\.env' #$envVars = Get-Content '.\.env'
$envVars -split "=" #$envVars -split "="
Write-Host 'Updating the env is unsupported on Windows.'
Loading…
Cancel
Save