square braces in square braces in sed require special treatment

master
Marc Wäckerlin 9 years ago
parent 1282ab6d49
commit 154cbcd3a4
  1. 2
      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

Loading…
Cancel
Save