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 8a3f9bc9f2a4b0325bcb2c0f80a0cc657af7562a
parent a772b4a78fc3d94ef2640828935f1d193b33cba4
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Mon, 27 Jun 2022 09:51:46 -0300

Update astro
Diffstat:
Mastro | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/astro b/astro @@ -73,7 +73,8 @@ parseurl() { port="$(echo "$hostport" | sed -e 's,^.*:,:,g' -e 's,.*:\([0-9]*\).*,\1,g' -e 's,[^0-9],,g')" path="$(echo "$url" | grep / | cut -d/ -f2-)" - [ "$oldhost" -a !"$host" ] && path="$host" && host="$oldhost" + [ "$oldhost" ] && [ ! "$path" ] && path="$host" && host="$oldhost" + [ "$oldhost" ] && [ ! "$host" ] && host="$oldhost" [ "$debug" ] && echo "Parsed: proto: ${proto:-gemini} host: $host port: ${port:-1965} path: ${path#/}" >&2 && sleep 2 echo "${proto:-gemini}" "$host" "${port:-1965}" "${path#/}" "$rest" return 0