From f46742baefc964b4a0c0673184180784cd5eda28 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 25 Oct 2022 12:19:54 +0200 Subject: [PATCH] Don't hard code bash as interpreter for source_validator scripts --- check_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_source.py b/check_source.py index b6883cef..3e3ed230 100755 --- a/check_source.py +++ b/check_source.py @@ -585,7 +585,7 @@ class CheckSource(ReviewBot.ReviewBot): for script in scripts: if os.path.isdir(script): continue - res = subprocess.run(['/bin/bash', script, '--batchmode', directory, old], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + res = subprocess.run([script, '--batchmode', directory, old], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if res.returncode: text = "Source validator failed. Try \"osc service runall source_validator\"\n" text += res.stdout.decode('utf-8')