Skip to content

Commit

Permalink
Merge pull request #34 from AliOsm/main
Browse files Browse the repository at this point in the history
Initialize rbenv if zshrc exists
  • Loading branch information
andrewn617 authored Jun 26, 2024
2 parents 0c04f89 + 3d048fc commit e12f6de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/ruby/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if [ "${USERNAME}" != "root" ]; then
chmod -R g+r+w "/home/${USERNAME}/.rbenv"

echo 'eval "$(rbenv init -)"' >> /home/${USERNAME}/.bashrc

if [ -f /home/${USERNAME}/.zshrc ]; then
echo 'eval "$(rbenv init -)"' >> /home/${USERNAME}/.zshrc
fi
fi

su ${USERNAME} -c "rbenv install $VERSION"
Expand Down

0 comments on commit e12f6de

Please sign in to comment.