diff --git a/manifest.toml b/manifest.toml index 5ac42af..4a48ea2 100644 --- a/manifest.toml +++ b/manifest.toml @@ -54,7 +54,8 @@ ram.runtime = "3G" ask.en = "Choose the forge you use" ask.fr = "Choisissez la forge que vous utilisez" type = "select" - choices = ["GitHub", "GitLab"] + choices.github = "Github" + choices.gitlab = "GitLab" default = "GitHub" optional = true diff --git a/scripts/install b/scripts/install index 3dfd209..8ebffea 100755 --- a/scripts/install +++ b/scripts/install @@ -25,11 +25,7 @@ ynh_app_setting_set --app=$app --key=used_forge --value=$used_forge ynh_app_setting_set --app=$app --key=forge_username --value=$forge_username ynh_app_setting_set --app=$app --key=forge_token --value=$forge_token -#================================================= -# STANDARD MODIFICATIONS -#================================================= - -# Remove trailing "/" for next commands +# Remove trailing "/" from the path path_no_slash=${path%/} #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index dce0edb..401db27 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,7 +17,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 admin_mail=$(ynh_user_get_info --username="$admin" --key=mail) key=$(ynh_string_random --length=50) -# Remove trailing "/" for next commands +# Remove trailing "/" from the path path_no_slash=${path%/} #=================================================