mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Update ynh_install_ruby__2
This commit is contained in:
parent
c4d58a6ba3
commit
05b6dc21ff
1 changed files with 9 additions and 9 deletions
|
@ -155,10 +155,10 @@ ynh_install_ruby () {
|
||||||
git clone -q https://github.com/rbenv/ruby-build.git "${rbenv_install_dir}/plugins/ruby-build"
|
git clone -q https://github.com/rbenv/ruby-build.git "${rbenv_install_dir}/plugins/ruby-build"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rb_alias="$(command -v "$rbenv_install_dir"/plugins/*/bin/rbenv-alias rbenv-alias | head -1)"
|
rbenv_alias="$(command -v "$rbenv_install_dir"/plugins/*/bin/rbenv-alias rbenv-alias | head -1)"
|
||||||
if [ -n "$rb_alias" ]; then
|
if [ -n "$rbenv_alias" ]; then
|
||||||
ynh_print_info --message="\`rbenv alias' command already available in \`$rb_alias'."
|
ynh_print_info --message="\`rbenv alias' command already available in \`$rbenv_alias'."
|
||||||
pushd "${rb_alias%/*/*}"
|
pushd "${rbenv_alias%/*/*}"
|
||||||
if git remote -v 2>/dev/null | grep -q rbenv-aliases; then
|
if git remote -v 2>/dev/null | grep -q rbenv-aliases; then
|
||||||
ynh_print_info --message="Trying to update rbenv-aliases with git..."
|
ynh_print_info --message="Trying to update rbenv-aliases with git..."
|
||||||
git pull -q origin master
|
git pull -q origin master
|
||||||
|
@ -170,10 +170,10 @@ ynh_install_ruby () {
|
||||||
git clone -q https://github.com/tpope/rbenv-aliases.git "${rbenv_install_dir}/plugins/rbenv-aliase"
|
git clone -q https://github.com/tpope/rbenv-aliases.git "${rbenv_install_dir}/plugins/rbenv-aliase"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rb_latest="$(command -v "$rbenv_install_dir"/plugins/*/bin/rbenv-latest rbenv-latest | head -1)"
|
rbenv_latest="$(command -v "$rbenv_install_dir"/plugins/*/bin/rbenv-latest rbenv-latest | head -1)"
|
||||||
if [ -n "$rb_latest" ]; then
|
if [ -n "$rbenv_latest" ]; then
|
||||||
ynh_print_info --message="\`rbenv latest' command already available in \`$rb_latest'."
|
ynh_print_info --message="\`rbenv latest' command already available in \`$rbenv_latest'."
|
||||||
pushd "${rb_latest%/*/*}"
|
pushd "${rbenv_latest%/*/*}"
|
||||||
if git remote -v 2>/dev/null | grep -q xxenv-latest; then
|
if git remote -v 2>/dev/null | grep -q xxenv-latest; then
|
||||||
ynh_print_info --message="Trying to update xxenv-latest with git..."
|
ynh_print_info --message="Trying to update xxenv-latest with git..."
|
||||||
git pull -q origin master
|
git pull -q origin master
|
||||||
|
@ -222,7 +222,7 @@ ynh_install_ruby () {
|
||||||
export RBENV_ROOT=$rbenv_install_dir
|
export RBENV_ROOT=$rbenv_install_dir
|
||||||
export PATH=\"$rbenv_install_dir/bin:$PATH\"
|
export PATH=\"$rbenv_install_dir/bin:$PATH\"
|
||||||
eval \"\$(rbenv init -)\"
|
eval \"\$(rbenv init -)\"
|
||||||
#rbenv" > /etc/profile.d/rbenv.sh
|
#rbenv" > /etc/profile.d/rbenv.sh
|
||||||
|
|
||||||
# Load the environment
|
# Load the environment
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
|
|
Loading…
Reference in a new issue