commit 50f1e4dd1e1f23d006ac05b6886c49b1e00c35af parent 5658ddfc37f7d85fdcf05887072072fa650f1608 Author: René Wagner <rwa@clttr.info> Date: Mon, 23 Jan 2023 17:47:56 +0100 fix u command on URIs with trailing / Diffstat:
M | astro | | | 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