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 bc9ab5796bdadefa31ef2274fd233fc7f33abdb0
parent 5658ddfc37f7d85fdcf05887072072fa650f1608
Author: Brian Mayer <bleemayer@gmail.com>
Date:   Mon, 23 Jan 2023 17:39:34 -0300

Merge pull request #29 from rnwgnr/main

fix u command on URIs with trailing /
Diffstat:
Mastro | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/astro b/astro @@ -411,8 +411,8 @@ EOF mv "$cachedir/bookmarks" "$bookmarkfile" ;; 57) - newpath=$(echo "/$4" | rev | cut -d'/' -f2- | rev) - url="$1://$2:$3/$newpath" + newpath=$(echo "/$4" | tr -d '/' | rev | cut -d'/' -f2- | rev) + url="$1://$2:$3$newpath" ;; esac