From 4170d75ebefbf1f6cdca36c0f9512f541bdd107c Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 3 Mar 2025 23:14:18 +0800 Subject: [PATCH] Improve setup.ps1: traits undetermined shell as bash --- setup.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.ps1 b/setup.ps1 index 4db4a0c7a99..dfc5a99d618 100755 --- a/setup.ps1 +++ b/setup.ps1 @@ -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) {