commit f8a42c2c08beb1702c9e8326836a1aa3292b87e9 parent 3d2652be14c146b14d0f67d26435686066564f5c Author: Sven Möller <sven-moeller@outlook.de> Date: Sun, 26 Dec 2021 16:13:32 +0100 Strip extension Diffstat:
M | bin/.local/bin/bm | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -49,7 +49,7 @@ open () { download () { url="$(get_url $1 $2)" - title="$(echo "$url" | sed 's_/$__' | rev | cut -d'/' -f1 | rev)" + title="$(echo "$url" | sed 's_/$__' | rev | cut -d'/' -f1 | rev | sed 's_\..*__')" echo $title pandoc --verbose -o "$BM_DIR/saved/$title.epub" "$url" }