]> gitweb.fluxo.info Git - httruta.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 23:03:30 +0000 (20:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 23:03:30 +0000 (20:03 -0300)
lib/httracker/functions

index c7dff7f1c6c13f9772198655733339994e1cdcc0..fbd60c286f2dea56a839ef26773d74a0f7adbe4d 100644 (file)
@@ -45,7 +45,7 @@ function httracker_get_incremental {
   # Creates target dir
   year=`date +%Y`
   month=`date +%m`
-  %day=`date +%d`
+  day=`date +%d`
   target=${MIRRORDIR}/${year}/${month}
   sudo -u links mkdir -p ${target}
 
@@ -64,7 +64,7 @@ function httracker_scuttle_config() {
   grep ${1} ${CONFIGFILE} | sed -e s/\[^\'\]\*\'// -e s/\'\.\*\$//
 }
 
-httracker_sqlquery() {
+function httracker_sqlquery {
   mysql --skip-column-names --batch \
         --user=${dbuser}          \
         --password=${dbpass}      \