25 lines
652 B
Plaintext
25 lines
652 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
printf "20 text/gemini\r\n"
|
||
|
|
||
|
printf "hello gemini!!\n"
|
||
|
printf '```\n'
|
||
|
cowsay WELCOME TO TILDE.CLUB A PLACE FOR WEBPAGES
|
||
|
printf '```\n'
|
||
|
printf "\n"
|
||
|
printf "we're a a digital community for socializing, \n"
|
||
|
printf "learning, and making cool stuff\n"
|
||
|
printf "\n"
|
||
|
printf "visit us in gopher and html lands for more info\n"
|
||
|
printf "\n"
|
||
|
printf "here are our esteemed users:\n"
|
||
|
printf "if you're not appearing here, mkdir ~/public_gemini\n"
|
||
|
|
||
|
for user in $(ls -d1 /home/*/public_gemini); do
|
||
|
user=$(stat -c '%U' $user)
|
||
|
if [[ -f /home/$user/public_gemini/index.gmi ]]; then
|
||
|
printf "=> gemini://tilde.club/~%s/ ~%s\n" "$user" "$user"
|
||
|
fi
|
||
|
done
|
||
|
|