diff options
Diffstat (limited to 'kopete/plugins/latex/kopete_latexconvert.sh')
-rwxr-xr-x | kopete/plugins/latex/kopete_latexconvert.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kopete/plugins/latex/kopete_latexconvert.sh b/kopete/plugins/latex/kopete_latexconvert.sh index b7f92263..298ebbde 100755 --- a/kopete/plugins/latex/kopete_latexconvert.sh +++ b/kopete/plugins/latex/kopete_latexconvert.sh @@ -94,9 +94,7 @@ done # if test -n "`type -p mktemp`" ; then - tmpdir="`mktemp /tmp/tex2imXXXXXX`" - rm $tmpdir - mkdir $tmpdir + tmpdir="`mktemp -d /tmp/tex2imXXXXXX`" else tmpdir=/tmp/tex2im$$ if [ -e $tmpdir ] ; then @@ -171,7 +169,7 @@ fi #if [ -e "$infile" ]; then # cat $infile >> $tmpdir/out.tex #else - echo "$infile" >> $tmpdir/out.tex + printf '%s' "$infile" >> $tmpdir/out.tex #fi if [ $noformula -eq 1 ]; then @@ -222,7 +220,7 @@ else mv $tmpdir/out.$format.0 $outfile fi -let OPTIND=$OPTIND+1 +OPTIND=$((${OPTIND}+1)) outfile="" done |