diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-12-24 06:16:24 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-12-24 06:16:24 -0500 |
| commit | 0670aba0246cc75f704e12cc925b170d37b116e1 (patch) | |
| tree | d3fb271c0e9b8cc550408718ccefa824cf5bcdb5 /net.sh | |
| parent | d412a36838a37d647fb02c2f6607951072eb5f1e (diff) | |
| download | cgi-bin-0670aba0246cc75f704e12cc925b170d37b116e1.tar.gz | |
NET: Use argv
Diffstat (limited to 'net.sh')
| -rwxr-xr-x | net.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net.sh b/net.sh index 0583bf2..dcb8a11 100755 --- a/net.sh +++ b/net.sh @@ -1,5 +1,6 @@ #!/bin/sh -if [ "$QUERY_STRING" = "" ] +q="$QUERY_STRING$1" +if [ "$q" = "" ] then printf "10 Enter a scripture reference\r\n" return @@ -7,7 +8,7 @@ fi printf "20 text/gemini\r\n" -qs="$(echo "$QUERY_STRING" |sed 's/ /\+/g')" +qs="$(echo "$q" |sed 's/ /\+/g')" printf "=> https://labs.bible.org This content pulled from bible.org.\n" # TODO: use &type=xml&formatting=para req="$(printf 'https://labs.bible.org/api/?passage=%s&type=text' "$qs")" |
