From 6947773cd88a6ab05ca4c4d6698725870ba16c46 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 4 May 2023 14:26:11 +0100 Subject: [PATCH] Fix bug preventing shell scripts from running (#159) --- samples/integration/ansible-lint.txt | 1 + src/mk/tools/shell.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/integration/ansible-lint.txt b/samples/integration/ansible-lint.txt index 50aa4ae..b563311 100644 --- a/samples/integration/ansible-lint.txt +++ b/samples/integration/ansible-lint.txt @@ -12,6 +12,7 @@ py py-devel schemas test +test-hook test-setup uninstall update-version diff --git a/src/mk/tools/shell.py b/src/mk/tools/shell.py index 10f87b6..45902bd 100644 --- a/src/mk/tools/shell.py +++ b/src/mk/tools/shell.py @@ -12,7 +12,7 @@ class ShellTool(Tool): def run(self, action: Optional[Action] = None) -> None: if action and action.filename: - run_or_fail(action.filename, tee=True) + run_or_fail(f"./{action.filename}", tee=True) def is_present(self, path: Path) -> bool: return True