Skip to content

Commit

Permalink
installer: make TEST_CURRENT_SHELL use basename (ohmyzsh#7514)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrehagen authored and atsuya committed Jun 9, 2019
1 parent 656bb72 commit 1617383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1617383

Please sign in to comment.