From c947e9983c0b8fef5be7b58b952742bfec2085cf Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 29 Oct 2012 12:15:50 -0500 Subject: [PATCH] Make homepages without tildes, too --- people.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/people.sh b/people.sh index 62ac05b..e693d69 100755 --- a/people.sh +++ b/people.sh @@ -8,8 +8,11 @@ echo ls /home/*/public_html/index.html | while read fn; do a=${fn#/home/} u=${a%/public_html/index.html} - l=/srv/www/woozle.org/~$u + tl=/srv/www/woozle.org/~$u + l=/srv/www/woozle.org/$u echo "* [$u](/~$u/)" - [ -h $l ] || ln -s /home/$u/public_html $l + for link in $tl $l; do + [ -h $link ] || ln -s /home/$u/public_html $link + done done