From 1282ab6d49d0ca0249e28a27c0d86a192f082459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 25 Jul 2016 21:06:47 +0000 Subject: [PATCH] ignore more special characters --- scripts/mvfotos.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mvfotos.in b/scripts/mvfotos.in index 939a596..f39d270 100755 --- a/scripts/mvfotos.in +++ b/scripts/mvfotos.in @@ -41,7 +41,7 @@ while [ $# -gt 0 ]; do echo " --test test only" exit 0 else - postfix=$(basename "$1" | tr '[:upper:]' '[:lower:]' | sed 's/[ ]/_/g') + postfix=$(basename "$1" | tr '[:upper:]' '[:lower:]' | sed 's,[/ ],_,g;s,[()\[\]{}],,g') type=${globaltype:-${postfix##*.}} date= if [ "${exif//${type}/}" != "$exif" ]; then