about summary refs log tree commit diff
path: root/gcc.sh
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-04-04 18:35:25 -0400
committerZach DeCook <zachdecook@librem.one>2021-04-04 18:35:25 -0400
commitceb612c0ce4077a95d59b29ff6f1856f75eb4583 (patch)
treeb4cc9168d8b6844b383a383159e09eb09e8fd836 /gcc.sh
parenta53536d864514b51dd0da128bddba1febc8534b3 (diff)
downloadcgi-bin-ceb612c0ce4077a95d59b29ff6f1856f75eb4583.tar.gz
curl: Be silent
Diffstat (limited to 'gcc.sh')
-rwxr-xr-xgcc.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc.sh b/gcc.sh
index 874a86e..6d55641 100755
--- a/gcc.sh
+++ b/gcc.sh
@@ -3,7 +3,7 @@
 if [ "$PATH_INFO" = "" ]
 then
     printf "20 text/gemini\r\n"
-    curl https://gccsatx.com/hymns/ | grep '	<a href="https://gccsatx.com/hymns/' | cut -d/ -f5 | sed 's@^@=>gcc.sh/@g'
+    curl -s https://gccsatx.com/hymns/ | grep '	<a href="https://gccsatx.com/hymns/' | cut -d/ -f5 | sed 's@^@=>gcc.sh/@g'
     exit 0
 fi
 
@@ -11,14 +11,14 @@ hasmp3=$(echo "$QUERY_STRING"|grep 'mp3')
 if [ ! "$hasmp3" = "" ]
 then
  printf "20 audio/mpeg\r\n"
- mp3=$(curl https://gccsatx.com/hymns$PATH_INFO/ | grep \.mp3 | sed 's/ /\n/g' | grep \.mp3 | grep href | cut -d'"' -f2)
+ mp3=$(curl -s https://gccsatx.com/hymns$PATH_INFO/ | grep \.mp3 | sed 's/ /\n/g' | grep \.mp3 | grep href | cut -d'"' -f2)
  curl --output - $mp3
  exit 0
 fi
 
 printf "20 text/gemini\r\n"
 printf "=>/cgi-bin/gcc.sh$PATH_INFO?.mp3 Listen to this!\n"
-curl https://gccsatx.com/hymns$PATH_INFO/ \
+curl -s https://gccsatx.com/hymns$PATH_INFO/ \
 | sed 's@	<title>@#@g' | sed 's@ | Hymn Lyrics and Piano Music</title>@@g'\
 | sed 's@<p><strong>@##@g' | sed 's@</strong>@@g'\
 | sed 's@<p>@@g' \