astro

a POSIX shell compatible gemini client (mirror of https://github.com/blmayer/astro)
git clone https://git.clttr.info/astro.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 241aa607ad07199e5f2b3d6d6fa1de60867f2e1d
parent 8a3f9bc9f2a4b0325bcb2c0f80a0cc657af7562a
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Tue, 28 Jun 2022 14:18:41 -0300

Added protocol check
Diffstat:
Mastro | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/astro b/astro @@ -287,6 +287,13 @@ EOF read -r proto host port path << EOF $(oldhost="$2" oldpath="$4" parseurl "$url") EOF + if [ ! "$proto" = "gemini" ] + then + echo "Only gemini links are supported." + echo "Type a key to continue." + read -r i <&1 + proto="$1"; host="$2"; port="$3"; path="$4" + fi fetch "$proto" "$host" "$port" "$path" } }