--- loncom/html/adm/jsMath/commands 2013/01/10 05:35:38 1.5 +++ loncom/html/adm/jsMath/commands 2013/01/11 15:27:23 1.6 @@ -1,9 +1,9 @@ currfontsversion=0.0 admdir='/home/httpd/html/adm' jsmathdir="$admdir/jsMath" -if [ -e $jsmathdir] +if [ -e $jsmathdir ] then - if [ -e $jsmathdir/FONTSVERSION" ] + if [ -e "$jsmathdir/FONTSVERSION" ] then currfontsversion=`cat $jsmathdir/FONTSVERSION` fi @@ -14,7 +14,10 @@ if [ $comparison -gt 0 ] then if [ -e $jsmathdir ] then - rm -rf $jsmathdir + if [ -e "$jsmathdir/fonts" ] + then + rm -rf $jsmathdir/fonts + fi fi unzip -q -o -d $admdir jsMath-fonts-1.3.zip cp FONTSVERSION $jsmathdir/FONTSVERSION