From e4b0602f6a34238dd989c2e195491d759522c29f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 9 Aug 2015 17:03:01 -0300 Subject: Rollback some stuff --- lib/httracker/functions | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/httracker/functions b/lib/httracker/functions index 7870f09..d847769 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -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} -- cgit v1.2.3