1
0
Fork 0
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:
yalh76 2021-02-24 07:47:09 +01:00
parent 9691d954dc
commit 867c83b3f8

View file

@ -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