mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Relative path question
This commit is contained in:
parent
90de6fdc80
commit
c73a677d20
1 changed files with 4 additions and 2 deletions
|
@ -1017,8 +1017,10 @@ class PathQuestion(Question):
|
|||
name=option.get("name"),
|
||||
error="Question is mandatory",
|
||||
)
|
||||
|
||||
return "/" + value.strip().strip(" /")
|
||||
value = value.strip().strip(" /")
|
||||
if not value.startswith("~"):
|
||||
value = "/" + value
|
||||
return value
|
||||
|
||||
|
||||
class BooleanQuestion(Question):
|
||||
|
|
Loading…
Add table
Reference in a new issue