From 88d1d5f4b2d1de7ec760a6dfb0d3e88e153c3ce3 Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 14 Oct 2008 01:16:41 +0200 Subject: [PATCH] Remove some clumsy commented out code to change menu item order in blog dirs --- bin/controller.rc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index 4b5a290..bb0fc05 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -31,13 +31,7 @@ fn hide_paths { # Sidebar fn menu { - lsArgs = ('-F') - # XXX will not work properly for $#blogDirs > 1 and matching is hackish - # XXX Work in progress, doesn't work well enough to be usable: too inconsistent, doesn't handle corner cases well at all - #if ( ! ~ $#blogDirs 0 && ~ $blogDirs^/ *$1 *$1/ ) { - # lsArgs = ($lsArgs -r) - #} - ls $lsArgs $1 | sed $dirfilter | awk -F/ ' + ls -F $1 | sed $dirfilter | awk -F/ ' BEGIN { print "" } # Should add \. to the list of allowed chars in file names, but need to find a way to filter out .txt and so on