shithub: werc

Download patch

ref: 5d724cf1c450cd40ab8f112a5e643e1385e4c249
parent: a1d55e50c902711dcfa1a2c50775925708640e6a
author: uriel <[email protected]>
date: Mon Jul 7 01:07:27 EDT 2008

Fix silly syntax error in blog-sidebar code

--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -38,7 +38,7 @@
 fn menu {
     lsArgs = ('-F')
     # XXX will not work properly for $#blogDirs > 1 and matching is hackish
-    if ( ! ~ $#inBlog 0 || ! ~ $#blogDirs 0 && ~ $blogDirs^/ *$1 *$1/ ) { # Work in progress XXX
+    if ( ! ~ $#inBlog 0 || { ! ~ $#blogDirs 0 && ~ $blogDirs^/ *$1 *$1/ } ) { # Work in progress XXX
     	lsArgs = ($lsArgs -r)
     }
     ls $lsArgs $1 | sed $dirfilter | awk -F/ '