From 154cbcd3a4a4690dffad0a8093f8ed76a4df1594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 26 Jul 2016 19:50:04 +0000 Subject: [PATCH] square braces in square braces in sed require special treatment --- scripts/mvfotos.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mvfotos.in b/scripts/mvfotos.in index f39d270..45572c8 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;s,[()\[\]{}],,g') + postfix=$(basename "$1" | tr '[:upper:]' '[:lower:]' | sed 's,[/ ],_,g;s,[][(){}],,g') type=${globaltype:-${postfix##*.}} date= if [ "${exif//${type}/}" != "$exif" ]; then