From 9fc8e0fb78cbdc0e2d881c6335d023d23eb38f74 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 11 Jan 2023 09:46:19 +0100 Subject: [PATCH] Be more resilient in case upgrade/backup/restore script dont exist for some reason --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 5a40c9c..7b01984 100755 --- a/package_linter.py +++ b/package_linter.py @@ -803,7 +803,7 @@ class App(TestSuite): if app_packaging_format <= 1: return - cmd = f"grep -IhEro 'ynh_\w+' '{app.path}/scripts/install' '{app.path}/scripts/remove' '{app.path}/scripts/upgrade' '{app.path}/scripts/backup' '{app.path}/scripts/restore'" + cmd = f"grep -IhEro 'ynh_\w+' '{app.path}/scripts/install' '{app.path}/scripts/remove' '{app.path}/scripts/upgrade' '{app.path}/scripts/backup' '{app.path}/scripts/restore' || true" helpers_used = ( subprocess.check_output(cmd, shell=True).decode("utf-8").strip().split("\n") )