astro

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 815640b3ef53131cf7d5387bce3eacfa4f0373b6
parent 091cf4976bfd7c29c534c02077bdbbac284df855
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Tue,  1 Feb 2022 15:51:27 -0300

Added quotes

- Fixed printf variables
- Adjusted version
Diffstat:
Mastro | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/astro b/astro @@ -1,7 +1,7 @@ #!/bin/sh usage() { - echo "Astro v0.10.0: Browse the gemini web on the terminal." + echo "Astro v0.14.0: Browse the gemini web on the terminal." echo "" echo "Usage: astro [url]|[option]" echo "" @@ -180,7 +180,7 @@ EOF ;; 60) printf "client certificate required, to create a client cert use the following command:\n\n" - printf "\topenssl req -x509 -newkey rsa:4096 -keyout $certdir/$2.key -out $certdir/$2.crt -days 36500 -nodes\n\n" + printf "\topenssl req -x509 -newkey rsa:4096 -keyout %s/%s.key -out %s/%s.crt -days 36500 -nodes\n\n" "$certdir" "$2" "$certdir" "$2" printf "press 'return' to reload the page or 'b' to go back to the previous page:\n" read -r in <&1 if [ "$in" = "b" ] @@ -188,7 +188,7 @@ EOF url="$(getprevious)" fetch $(parseurl "$url") else - fetch $1 $2 $3 $4 $5 + fetch "$1" "$2" "$3" "$4" "$5" fi return 0 ;;