Skip to content

Commit

Permalink
fix: πŸ› update install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Jan 6, 2024
1 parent 4b33fa1 commit 12dc8f0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,22 @@ ForEach ( $pkg in $pkgs ) {
# Update PowerShell Settings
###################################################

$OX_SHELL = "$HOME/.bash_profile"
$env:OX_SHELL = "$HOME/.bash_profile"

Write-Output "Adding Oxidizer into $OX_SHELL..."
Write-Output "Adding Oxidizer into $env:OX_SHELL..."

if (!(Test-Path -Path $OX_SHELL)) {
New-Item -ItemType File -Force -Path $OX_SHELL
New-Item -ItemType File -Force -Path $env:OX_SHELL
}

Write-Output '# Oxidizer' >> $OX_SHELL
Write-Output '# Oxidizer' >> $env:OX_SHELL

if ([string]::IsNullOrEmpty($env:OXIDIZER)) {
Write-Output '
export OXIDIZER=${HOME}/oxidizer' >> $OX_SHELL
Write-Output 'source ${OXIDIZER}/oxidizer.sh' >> $OX_SHELL
Write-Output 'export OXIDIZER=${HOME}/oxidizer' >> $env:OX_SHELL
Write-Output 'source ${OXIDIZER}/oxidizer.sh' >> $env:OX_SHELL
}
else {
Write-Output "source '${OXIDIZER}'/oxidizer.sh" >> $OX_SHELL
Write-Output 'source ${OXIDIZER}/oxidizer.sh' >> $env:OX_SHELL
}

Write-Output "Adding Custom settings..."
Expand Down

0 comments on commit 12dc8f0

Please sign in to comment.