Some changes to spartan proxy script
This commit is contained in:
parent
7b8d0a6c4a
commit
00c47e073b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue