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:
parent
378bb879a1
commit
95b0b0e700
3 changed files with 4 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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%/}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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%/}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue