commit 5d91ace6db63400a37fd549647f39dd4327adbb0
parent 1c07db275106eb217b7de7f36f08d648a34580ea
Author: René Wagner <rwa@clttr.info>
Date: Tue, 15 Aug 2023 19:34:22 +0200
fix URI building for `u` command
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/astro b/astro
@@ -453,7 +453,7 @@ EOF
mv "$cachedir/bookmarks" "$bookmarkfile"
;;
57)
- newpath=$(echo "/$4" | tr -d '/' | rev | cut -d'/' -f2- | rev)
+ newpath=$(echo "/${4%/}" | rev | cut -d'/' -f2- | rev)
url="$1://$2:$3$newpath"
;;
esac