From 9ebc2b44de10914761550892bb84de71a667eece Mon Sep 17 00:00:00 2001 From: uriel Date: Tue, 14 Oct 2008 01:25:37 +0200 Subject: [PATCH] Simplify dir listing code --- bin/controller.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index bb0fc05..fa4c7fd 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -114,10 +114,10 @@ fn txt_handler { } fn dir_listing_handler { - body = $1 - echo '

' `{basename -d $body|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g' } '

' + d = `{basename -d $1} + echo '

' `{echo $d|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g' } '

' echo '' }