]> gitweb.fluxo.info Git - httruta.git/commitdiff
Rollback some stuff
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Aug 2015 20:03:01 +0000 (17:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Aug 2015 20:03:01 +0000 (17:03 -0300)
lib/httracker/functions

index 7870f09f42046ae2a31c7e2648095bcd8e6b6f08..d8477696e4940290f4ec9b6638bc0451424e57f4 100644 (file)
@@ -24,7 +24,7 @@ function httracker_get {
   local first="`echo $hash | cut -c 1-2`"
   local second="`echo $hash | cut -c 3-4`"
 
-  echo "Processing $url..."
+  echo -n "Processing $url..."
 
   # Set target and make sure it exists
   # We use two levels of directories used for hashing,
@@ -35,8 +35,10 @@ function httracker_get {
 
   # We already got this one
   if [ -e "$TARGET/httracker-ok" ]; then
-    echo "Skipping as it's already downloaded as $hash..."
+    echo " skipping as it's already downloaded as $hash..."
     return
+  else
+    echo ""
   fi
 
   # Basic options
@@ -48,10 +50,10 @@ function httracker_get {
   fi
 
   # Fix permissions
-  #if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then
-  #  echo "Fixing $TARGET permissions..."
-  #  chown -R $USER.$GROUP $TARGET/
-  #fi
+  if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then
+    echo "Fixing $TARGET permissions..."
+    chown -R $USER.$GROUP $TARGET/
+  fi
 
   # Get each URL
   httrack ${OPTS} ${url}