]> gitweb.fluxo.info Git - httruta.git/commitdiff
Set date on httracker-ok
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Aug 2015 19:10:21 +0000 (16:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Aug 2015 19:10:21 +0000 (16:10 -0300)
lib/httracker/functions

index 2d3e35a41b2040d02e3f4b22a2dfe3cecd82438e..f9e56f12605d3051275f67903d316e7318ba0cac 100644 (file)
@@ -67,7 +67,7 @@ function httracker_get {
 
   if [ "$?" == "0" ]; then
     # Mark as downloaded
-    touch $TARGET/httracker-ok
+    date +%s > $TARGET/httracker-ok
   else
     echo "Error fetching $url."
     rm -rf $TARGET