mirror of
https://github.com/alecmuffett/real-world-onion-sites.git
synced 2024-10-01 01:06:18 -04:00
28 lines
850 B
Bash
Executable File
28 lines
850 B
Bash
Executable File
#!/bin/sh
|
|
|
|
while read category scheme onion_address proof_url title ; do
|
|
test x$category = x && continue
|
|
|
|
if [ ! -d "directory/$category" ] ; then
|
|
echo oops: bad category $category for $onion_address
|
|
exit 1
|
|
fi
|
|
|
|
for existing in `echo directory/*/$onion_address` ; do
|
|
if [ -d "$existing" ] ; then
|
|
echo onion exists at $existing for $title
|
|
continue 2 # skip 2 levels to the next onion
|
|
fi
|
|
done
|
|
|
|
dir="directory/$category/$onion_address"
|
|
echo "making $dir"
|
|
mkdir -p $dir || exit 1
|
|
|
|
echo $title >$dir/title
|
|
echo $proof_url >$dir/proof
|
|
echo $scheme://$onion_address/ >$dir/urls # add more by hand, later
|
|
done <<EOF
|
|
tech-and-software http keybase5wmilwokqirssclfnsqrjdsi7jdir5wy7y7iu3tanwmtp6oid.onion https://keybase.io/docs/command_line/tor keybase.io
|
|
EOF
|