[LON-CAPA-cvs] cvs: loncom /html/adm/jsMath commands

raeburn raeburn at source.lon-capa.org
Fri Jan 11 10:27:23 EST 2013


raeburn		Fri Jan 11 15:27:23 2013 EDT

  Modified files:              
    /loncom/html/adm/jsMath	commands 
  Log:
  - Fix typos in rev. 1.5
  - Only remove jsMath/fonts directory if newer fonts available.  
  
  
Index: loncom/html/adm/jsMath/commands
diff -u loncom/html/adm/jsMath/commands:1.5 loncom/html/adm/jsMath/commands:1.6
--- loncom/html/adm/jsMath/commands:1.5	Thu Jan 10 05:35:38 2013
+++ loncom/html/adm/jsMath/commands	Fri Jan 11 15:27:23 2013
@@ -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 @@
 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




More information about the LON-CAPA-cvs mailing list