shithub: werc

Download patch

ref: 17c7b5052917c9f1286d0b5dd8be0f7a1a7dc728
parent: c22d978f9199a3cc2ece99dd0de3c511a14b9441
author: uriel <uriel@engel.se.cat-v.org>
date: Mon Oct 13 21:10:34 EDT 2008

Properly test if msterSite is set when looking for templates

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -9,7 +9,7 @@
     wantedfile = $1
     if (test -f $sitedir/_werc/lib/$wantedfile)
     	echo -n $sitedir/_werc/lib/$wantedfile
-    if not if(! ~ $masterSite 0 && test -f sites/$masterSite/_werc/lib/$wantedfile)
+    if not if(! ~ $#masterSite 0 && test -f sites/$masterSite/_werc/lib/$wantedfile)
     	echo -n       sites/$masterSite/_werc/lib/$wantedfile
     if not if (test -f lib/$wantedfile)
     	echo -n        lib/$wantedfile