From 95b0b0e7005cc0a3318c767521c99fa2c62cc1ba Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:32:15 +0100 Subject: [PATCH] some cleanings --- manifest.toml | 3 ++- scripts/install | 6 +----- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) 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%/} #=================================================