diff options
author | Jackson Delahunt <jackson@jacksondelahunt.com> | 2019-01-16 05:01:34 +1100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-01-15 19:01:34 +0100 |
commit | 026e4e499e6b01ebe4b6d9748c6e2eb182ad1359 (patch) | |
tree | 041f7e29660ed9ad4baa122291e7d3dc4690bd51 /tools | |
parent | 9329efd2522b3eaba5f6d9d53e41c090eb6b3c92 (diff) | |
download | zsh-026e4e499e6b01ebe4b6d9748c6e2eb182ad1359.tar.gz zsh-026e4e499e6b01ebe4b6d9748c6e2eb182ad1359.tar.bz2 zsh-026e4e499e6b01ebe4b6d9748c6e2eb182ad1359.zip |
installer: make TEST_CURRENT_SHELL use basename (#7514)
Fixes #7492
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install.sh b/tools/install.sh index 0cc020053..2fb87cdaf 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -79,7 +79,7 @@ main() { mv -f ~/.zshrc-omztemp ~/.zshrc # If this user's login shell is not already "zsh", attempt to switch. - TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)') + TEST_CURRENT_SHELL=$(basename "$SHELL") if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then # If this platform provides a "chsh" command (not Cygwin), do it, man! if hash chsh >/dev/null 2>&1; then |