]> gitweb.fluxo.info Git - httruta.git/commitdiff
Fixing user/group
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 19:46:27 +0000 (16:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Aug 2013 19:46:27 +0000 (16:46 -0300)
httracker

index a0c112178fa374f4c390d6675a895a43b89e226f..b5fea9b9a32aa130cc1c9150f2465efd44d177ca 100755 (executable)
--- a/httracker
+++ b/httracker
@@ -20,6 +20,7 @@ function httracker_get {
   local target="$MIRRORS/$hash"
 
   mkdir -p $target
+  chown -R $USER.$GROUP $target/
 
   # We already got this one
   if [ -f "$target/ok" ]; then
@@ -41,7 +42,6 @@ function httracker_get {
   if [ "$1" == "0" ]; then
     # Mark as downloaded
     touch $target/ok
-    chown -R $USER.$GROUP $target/
   else
     echo "Error fetching $url."
     rm -rf $target