mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Typos
This commit is contained in:
parent
859b3b6f12
commit
3084359155
2 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ ynh_abort_if_errors() {
|
|||
}
|
||||
|
||||
# When running an app script with packaging format >= 2, auto-enable ynh_abort_if_errors except for remove script
|
||||
if [[ ${YNH_APP_PACKAGING_FORMAT:-0} -ge 2 ]] && [[ ${YNH_APP_ACTION} != "remove" ]]
|
||||
if dpkg --compare-versions ${YNH_APP_PACKAGING_FORMAT:-0} ge 2 && [[ ${YNH_APP_ACTION} != "remove" ]]
|
||||
then
|
||||
ynh_abort_if_errors
|
||||
fi
|
||||
|
|
|
@ -627,7 +627,7 @@ def app_upgrade(app=[], url=None, file=None, force=False, no_safety_backup=False
|
|||
if upgrade_failed or broke_the_system:
|
||||
|
||||
# display this if there are remaining apps
|
||||
if apps[number + 1 :]:
|
||||
if apps[number + 1:]:
|
||||
not_upgraded_apps = apps[number:]
|
||||
logger.error(
|
||||
m18n.n(
|
||||
|
@ -2048,9 +2048,9 @@ def _set_default_ask_questions(questions, script_name="install"):
|
|||
|
||||
# Also it in fact doesn't make sense for any of those questions to have an example value nor a default value...
|
||||
if question.get("type") in ["domain", "user", "password"]:
|
||||
if "example" in arg:
|
||||
if "example" in question:
|
||||
del question["example"]
|
||||
if "default" in arg:
|
||||
if "default" in question:
|
||||
del question["domain"]
|
||||
|
||||
return questions
|
||||
|
|
Loading…
Add table
Reference in a new issue