]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
Quality Agent: Replace "env ruby".
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 12 Feb 2013 19:26:41 +0000 (20:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Feb 2013 19:37:30 +0000 (20:37 +0100)
This commit adds a rule to replace "env ruby" with the correct run command "/usr/bin/ruby".

tools/quality-agent.d/050-invalid-interpreters

index deac7a31b51525c00cec6088da8760675ea06143..63847c7d1ebdc1de2f253c5a215dca3714d38ada 100755 (executable)
@@ -28,7 +28,8 @@ check() {
                                sed -i ${file} \
                                        -e "s,/usr/bin/env python\(.*\),/usr/bin/python\1," \
                                        -e "s,/usr/bin/env python,/usr/bin/python," \
-                                       -e "s,/usr/bin/env perl,/usr/bin/perl,"
+                                       -e "s,/usr/bin/env perl,/usr/bin/perl," \
+                                       -e "s,/usr/bin/env ruby,/usr/bin/ruby,"
 
                                # If we could not fix it, raise an error
                                if [ "${interpreter}" = "$(file_get_interpreter ${file})" ]; then