summary refs log tree commit diff
path: root/userbar.sh
blob: 606d5dedfdc8ebed9fd60eb403b83f53bb1ceb49 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

for file in /home/*/public_html/index.html; do
	cmp -s "$file" /etc/skel/public_html/index.html
	if [ $? -eq 1 ]; then
		user=${file##/home/}
		user=${user%%/*}
		printf '<li><a href="/~%s">~%s</a></li>\n' $user $user
	fi
done