diff --git a/yunohost_hook.py b/yunohost_hook.py index d8b738ec..af472692 100644 --- a/yunohost_hook.py +++ b/yunohost_hook.py @@ -71,7 +71,7 @@ def hook_check(file): """ try: - with open(file[:file.index('scripts/install')] + 'manifest.json') as f: + with open(file[:file.index('scripts/')] + 'manifest.json') as f: manifest = json.loads(str(f.read())) except: raise YunoHostError(22, _("Invalid app package"))