]> gitweb.fluxo.info Git - httruta.git/commitdiff
Fixing target handling
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Aug 2013 02:18:29 +0000 (23:18 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Aug 2013 02:18:29 +0000 (23:18 -0300)
lib/httracker/functions

index e42e0d84a7b428dad5589ed6474873e8b26145a8..dcc8f4b8298240221f699ab5771cb846308e7f85 100644 (file)
@@ -21,7 +21,9 @@ function httracker_get {
   # Options
   local url="$1"
   local hash="`echo $1 | sha1sum | cut -d ' ' -f 1`"
-  local target="$MIRRORS/$hash"
+
+  # Set target
+  target="$MIRRORS/$hash"
 
   # Make sure that target exists
   mkdir -p $target