mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Fix rbenv alias not existing in previous version
This commit is contained in:
parent
9691d954dc
commit
867c83b3f8
1 changed files with 4 additions and 1 deletions
|
@ -117,8 +117,11 @@ ynh_install_ruby () {
|
|||
|
||||
# Remove previous version
|
||||
if grep --quiet "$YNH_APP_INSTANCE_NAME:" "$rbenv_install_dir/ynh_app_version"
|
||||
then
|
||||
if grep --quiet "$YNH_APP_INSTANCE_NAME" $(rbenv alias --list)
|
||||
then
|
||||
rbenv alias $YNH_APP_INSTANCE_NAME --remove
|
||||
fi
|
||||
sed --in-place "/$YNH_APP_INSTANCE_NAME:/d" "$rbenv_install_dir/ynh_app_version"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue