]> gitweb.fluxo.info Git - httruta.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 19:47:59 +0000 (16:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 19:47:59 +0000 (16:47 -0300)
httracker

index b5fea9b9a32aa130cc1c9150f2465efd44d177ca..df08f03092d5787cfc2b9478ead3916a3c8032ef 100755 (executable)
--- a/httracker
+++ b/httracker
@@ -39,7 +39,7 @@ function httracker_get {
     #-e%${EXT_LEVEL}    \
     #-m$FILESIZE        \
 
-  if [ "$1" == "0" ]; then
+  if [ "$?" == "0" ]; then
     # Mark as downloaded
     touch $target/ok
   else