From 6fc1558880583aa3499e39fc5735f9a9275af204 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Sun, 29 May 2022 19:40:25 +0200 Subject: [PATCH] Bug fix: Remove shortest match of trailing dot. --- .local/bin/cmusctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/cmusctl b/.local/bin/cmusctl index 36707d2..33d7ed1 100755 --- a/.local/bin/cmusctl +++ b/.local/bin/cmusctl @@ -120,7 +120,7 @@ function get_file_name() { local fn fn="$(get_field file)" fn="${fn##*/}" - fn="${fn%%.*}" + fn="${fn%.*}" echo "$fn" }