fix another typo
authorRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 10:19:39 +0000 (12:19 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 10:19:39 +0000 (12:19 +0200)
misc/tools/cached-converter.sh

index 012e516d06fa73d6431b7d061bba780dd0c90423..26b6ddf87e66f50138f7b9bfaed93e88290d5453 100755 (executable)
@@ -46,8 +46,8 @@ cached()
        [ -z "$outfile2" ] || name2="$CACHEDIR/$method-$options/$sum-2.${outfile2##*.}"
        tempfile1="${name1%/*}/new-${name1##*/}"
        [ -z "$outfile2" ] || tempfile2="${name2%/*}/new-${name2##*/}"
-       [ -z "${outfile1##*/*}" && mkdir -p "${outfile1%/*}"
-       [ -z "$outfile2" ] || [ -z "${outfile2##*/*}" && mkdir -p "${outfile2%/*}"
+       [ -z "${outfile1##*/*}" && mkdir -p "${outfile1%/*}"
+       [ -z "$outfile2" ] || { [ -z "${outfile2##*/*}" ] && mkdir -p "${outfile2%/*}"; }
        if [ -f "$name1" ]; then
                ln "$name1" "$outfile1" 2>/dev/null || cp "$name1" "$outfile1"
                [ -z "$outfile2" ] || ln "$name2" "$outfile2" 2>/dev/null || cp "$name2" "$outfile2"