Skip to content

Commit

Permalink
Improve setup.ps1: traits undetermined shell as bash
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Mar 3, 2025
1 parent ea49252 commit 4170d75
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,15 @@ else {
}
}
if ($env:SHELL -like '*/zsh') {
if ("$env:SHELL" -like '*/zsh') {
updateUnixProfile ~/.zshrc
}
elseif($env:SHELL -like '*/bash') {
else { # traits undetermined shell as bash
if (!$IsMacOS) {
updateUnixProfile ~/.bashrc
} else {
updateUnixProfile ~/.bash_profile
}
} else {
Write-Error "Warning: current shell: $env:SHELL isn't officially supported by axmol community"
}
if ($IsMacOS) {
Expand Down

0 comments on commit 4170d75

Please sign in to comment.