]>
Commit | Line | Data |
---|---|---|
91d1c8a9 MT |
1 | From 0f41600f3e2e38352f87b0a2d130e12b0da26ee3 Mon Sep 17 00:00:00 2001 |
2 | From: Stefan Schantl <stefan.schantl@ipfire.org> | |
3 | Date: Tue, 12 Feb 2013 20:26:41 +0100 | |
4 | Subject: [PATCH 16/17] Quality Agent: Replace "env ruby". | |
5 | ||
6 | This commit adds a rule to replace "env ruby" with the correct run command "/usr/bin/ruby". | |
7 | --- | |
8 | tools/quality-agent.d/050-invalid-interpreters | 3 ++- | |
9 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/tools/quality-agent.d/050-invalid-interpreters b/tools/quality-agent.d/050-invalid-interpreters | |
12 | index deac7a3..63847c7 100755 | |
13 | --- a/tools/quality-agent.d/050-invalid-interpreters | |
14 | +++ b/tools/quality-agent.d/050-invalid-interpreters | |
15 | @@ -28,7 +28,8 @@ check() { | |
16 | sed -i ${file} \ | |
17 | -e "s,/usr/bin/env python\(.*\),/usr/bin/python\1," \ | |
18 | -e "s,/usr/bin/env python,/usr/bin/python," \ | |
19 | - -e "s,/usr/bin/env perl,/usr/bin/perl," | |
20 | + -e "s,/usr/bin/env perl,/usr/bin/perl," \ | |
21 | + -e "s,/usr/bin/env ruby,/usr/bin/ruby," | |
22 | ||
23 | # If we could not fix it, raise an error | |
24 | if [ "${interpreter}" = "$(file_get_interpreter ${file})" ]; then | |
25 | -- | |
26 | 1.8.1.2 | |
27 |