dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 34b52ffcf5ad100e1f1a1fcf935fbcf45d86e830
parent d38bf7429f09cecafcde27bd45ca767d1b8f6c9c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 13 Jan 2020 16:25:39 +0100

Remove trailing slashes from directory name

Diffstat:
M.local/bin/html_gallery_newest.sh | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/.local/bin/html_gallery_newest.sh b/.local/bin/html_gallery_newest.sh @@ -60,6 +60,7 @@ generate_html() { local _i, _dir generate_html_header for _dir in "$@"; do + _dir="${_dir%/}" _i="$(get_newest_image "$_dir")" printf " <a href=\"%s.html\"><img src=\"%s/%s\" alt=\"%s\"/>%s</a><br>\n" \ "$_dir" "$_dir" "$_i" "$_dir" "$_dir"