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