diff options
Diffstat (limited to 'examples/cgi/cgi-bin')
-rwxr-xr-x | examples/cgi/cgi-bin/cowsay | 3 | ||||
-rwxr-xr-x | examples/cgi/cgi-bin/environ | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/examples/cgi/cgi-bin/cowsay b/examples/cgi/cgi-bin/cowsay index e63e909..fc1f4e5 100755 --- a/examples/cgi/cgi-bin/cowsay +++ b/examples/cgi/cgi-bin/cowsay @@ -2,8 +2,7 @@ set -euo pipefail -if [ -z "$QUERY_STRING" ]; -then +if [[ -z "$QUERY_STRING" ]]; then printf "10 Enter a phrase.\r\n" exit 0 fi diff --git a/examples/cgi/cgi-bin/environ b/examples/cgi/cgi-bin/environ new file mode 100755 index 0000000..62ca15a --- /dev/null +++ b/examples/cgi/cgi-bin/environ @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +set -euo pipefail + +printf "20 text/gemini\r\n" +echo "\`\`\`env(1) output" +env +echo "\`\`\`" |