mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +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
|
# Remove previous version
|
||||||
if grep --quiet "$YNH_APP_INSTANCE_NAME:" "$rbenv_install_dir/ynh_app_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
|
then
|
||||||
rbenv alias $YNH_APP_INSTANCE_NAME --remove
|
rbenv alias $YNH_APP_INSTANCE_NAME --remove
|
||||||
|
fi
|
||||||
sed --in-place "/$YNH_APP_INSTANCE_NAME:/d" "$rbenv_install_dir/ynh_app_version"
|
sed --in-place "/$YNH_APP_INSTANCE_NAME:/d" "$rbenv_install_dir/ynh_app_version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue