tilde-oauth/tools/hthelp

14 lines
214 B
Bash
Executable File

#!/bin/bash
DOCE=/usr/bin/amfora
DOC=/var/gemini/docs/help.gmi
if [ ! -f "$DOC" ]; then
echo "Helpdoc missing!"
exit 1
fi
if [ -f "$DOCE" ]; then
$DOCE "gemini.hackers.town/docs/help.gmi"
else
$EDITOR $DOC
fi