]> gitweb.fluxo.info Git - httruta.git/commitdiff
Improve output
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Aug 2015 19:17:51 +0000 (16:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Aug 2015 19:17:51 +0000 (16:17 -0300)
lib/httracker/functions

index 25109d474e4514b169a810a19ff2808f109bd9af..050810daa3c01e5958f9e239a9b54c6304e5db8b 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 -n "Processing $url..."
+  echo "Processing $url..."
 
   # Set target and make sure it exists
   # We use two levels of directories used for hashing,
@@ -35,11 +35,8 @@ 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 -e "\n"
-    echo "Hash is $hash"
   fi
 
   # Basic options
@@ -72,6 +69,9 @@ function httracker_get {
     echo "Fixing $TARGET permissions again..."
     chown -R $USER.$GROUP $TARGET/
   fi
+
+  # Done here
+  echo ""
 }
 
 # Download URLs, incremental mode