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 9506566a06db0c5d3500e12240a0a7de8c780f0c
parent d3897d490bc13fb28d8db62f78290875c8e48bd0
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Thu, 23 Dec 2021 15:06:27 -0300

Merge pull request #14 from guzzisti/main

fix relative redirects
Diffstat:
Mastro | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/astro b/astro @@ -139,7 +139,10 @@ fetch() { # Redirect [ "$debug" ] && echo "Redirect to: $meta" >&2 # shellcheck disable=SC2046 - fetch $(parseurl "$meta") + read -r proto host port path << EOF + $(oldhost="$2" oldpath="$4" parseurl "$meta") +EOF + fetch "$proto" "$host" "$port" "$path" return 0 ;; 40)