aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-27 11:37:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-27 11:37:37 -0300
commitbd8e556a981edc1f2e927a04f0501e29ab40f174 (patch)
tree87e1a9a2d6d23cad9110fcc690910465ff37f12a /lib
parent4b3a10cc6ee95cc74ddd2f3db5b0fd355f19de7e (diff)
downloadhttruta-bd8e556a981edc1f2e927a04f0501e29ab40f174.tar.gz
httruta-bd8e556a981edc1f2e927a04f0501e29ab40f174.tar.bz2
Be more verbose
Diffstat (limited to 'lib')
-rw-r--r--lib/httracker/functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions
index a0a3837..7a66bc7 100644
--- a/lib/httracker/functions
+++ b/lib/httracker/functions
@@ -22,13 +22,18 @@ function httracker_get {
local url="$1"
local hash="`echo $1 | sha1sum | cut -d ' ' -f 1`"
+ echo -n "Processing $url..."
+
# Set target and make sure it exists
TARGET="$MIRRORS/$hash"
mkdir -p $TARGET
# We already got this one
if [ -e "$TARGET/httracker-ok" ]; then
+ echo " skipping as it's already downloaded as $hash..."
return
+ else
+ echo -e "\n"
fi
# Basic options