2016-01-21 23:41:46 +01:00

22 lines
446 B
Plaintext

$NetBSD: patch-ai,v 1.3 2015/04/03 17:50:27 rodent Exp $
--- plugins-scripts/subst.in.orig 2014-03-04 21:41:57.000000000 +0000
+++ plugins-scripts/subst.in
@@ -9,13 +9,14 @@ function which(c,path) {
sub(/\/.*\//,"",c);
for (dir in path) {
+ if (match(path[dir], /.tools/ ) != 0 ) {
+ continue;
+ }
cmd = "test -x " path[dir] "/" c;
if (system(cmd)==0) {
return path[dir] "/" c;
}
}
-
-
return c;
}