From: "Lorenz (xha)" Subject: using tog(1) as an alternative to gotwebd(8) (anonymous access) To: gameoftrees@openbsd.org Date: Wed, 4 Oct 2023 13:02:24 +0200 hi gameoftrees@, i've been trying to get more away from web browsers and since i really like the interface of tog i am curious if i could allow anonymous tog access via ssh using a shell script like this: ``` #!/bin/sh repository='$1' echo "to view the tree of a commit, press T" echo "see got(1) for a full manual page" read cd '$repository' tog ``` i obviously would need to ensure that the variable $1 doesn't contain something like "..". i would probably do a switch case to make sure that only repos i want can actually be viewed. i couldn't find anything on the mailling lists that anyone has ever tried this. since tog only allows read-only access, this would be fine, right? - lorenz