1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

some cleanings

This commit is contained in:
Thomas 2024-01-23 19:32:15 +01:00 committed by GitHub
parent 378bb879a1
commit 95b0b0e700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -54,7 +54,8 @@ ram.runtime = "3G"
ask.en = "Choose the forge you use" ask.en = "Choose the forge you use"
ask.fr = "Choisissez la forge que vous utilisez" ask.fr = "Choisissez la forge que vous utilisez"
type = "select" type = "select"
choices = ["GitHub", "GitLab"] choices.github = "Github"
choices.gitlab = "GitLab"
default = "GitHub" default = "GitHub"
optional = true optional = true

View file

@ -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_username --value=$forge_username
ynh_app_setting_set --app=$app --key=forge_token --value=$forge_token ynh_app_setting_set --app=$app --key=forge_token --value=$forge_token
#================================================= # Remove trailing "/" from the path
# STANDARD MODIFICATIONS
#=================================================
# Remove trailing "/" for next commands
path_no_slash=${path%/} path_no_slash=${path%/}
#================================================= #=================================================

View file

@ -17,7 +17,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1
admin_mail=$(ynh_user_get_info --username="$admin" --key=mail) admin_mail=$(ynh_user_get_info --username="$admin" --key=mail)
key=$(ynh_string_random --length=50) key=$(ynh_string_random --length=50)
# Remove trailing "/" for next commands # Remove trailing "/" from the path
path_no_slash=${path%/} path_no_slash=${path%/}
#================================================= #=================================================