square braces in square braces in sed require special treatment

master
Marc Wäckerlin 8 years ago
parent 1282ab6d49
commit 154cbcd3a4
  1. 2
      scripts/mvfotos.in

@ -41,7 +41,7 @@ while [ $# -gt 0 ]; do
echo " --test test only" echo " --test test only"
exit 0 exit 0
else 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##*.}} type=${globaltype:-${postfix##*.}}
date= date=
if [ "${exif//${type}/}" != "$exif" ]; then if [ "${exif//${type}/}" != "$exif" ]; then

Loading…
Cancel
Save