From f0bfff3f6c6a85078dbad259ec27d35aca99a405 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 14 Oct 2008 01:10:34 +0200 Subject: [PATCH] Properly test if msterSite is set when looking for templates --- bin/controller.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index cef07a8..7562685 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -9,7 +9,7 @@ fn get_lib_file { 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