Some changes to spartan proxy script

This commit is contained in:
g1n 2021-07-19 07:12:13 +00:00
parent 7b8d0a6c4a
commit 00c47e073b
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
#!/bin/bash
url=$(echo $QUERY_STRING | sed 's/%2F/\//') #${REPLY}
if [ -z $QUERY_STRING ]; then
printf "10 Enter your spartan:// url\r\n"
fi
url=$(echo $QUERY_STRING | sed 's/%2F/\//g') #${REPLY}
printf "20 text/gemini\r\n"
#printf "%s\r\n" "$url"
content=$(/home/g1n/code/laconia/laconia -u $url)
printf "%s\r\n" "$content"