mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update app.py
This commit is contained in:
parent
805ceb79be
commit
3a7294ed02
1 changed files with 3 additions and 2 deletions
5
app.py
5
app.py
|
@ -284,8 +284,9 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
|||
upgraded_apps = []
|
||||
|
||||
# If no app is specified, upgrade all apps
|
||||
if not app and (not url or file):
|
||||
app = os.listdir(apps_setting_path)
|
||||
if not app:
|
||||
if (not url and not file):
|
||||
app = os.listdir(apps_setting_path)
|
||||
elif not isinstance(app, list):
|
||||
app = [ app ]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue