Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit b6ec00f

Browse files
committed
Initial script which sets environment variables
1 parent 3697002 commit b6ec00f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/set-env.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$elixirRoot = $args[0]
2+
$elixirBin = ($elixirRoot + "\bin").Replace("\\", "\")
3+
4+
Write-Host " * Appending $elixirBin to Path variable..." -foregroundcolor "green"
5+
if (!($env:Path.Contains($elixirBin)))
6+
{
7+
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";" + $elixirBin, "Machine")
8+
}

0 commit comments

Comments
 (0)