diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-08-09 17:03:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-08-09 17:03:01 -0300 |
commit | e4b0602f6a34238dd989c2e195491d759522c29f (patch) | |
tree | 4cbdb0a57d58a9a97cc2f1d6980c299bccd1d817 /lib | |
parent | d0a0db7b087eeaf0a903674122a8487599946641 (diff) | |
download | httruta-e4b0602f6a34238dd989c2e195491d759522c29f.tar.gz httruta-e4b0602f6a34238dd989c2e195491d759522c29f.tar.bz2 |
Rollback some stuff
Diffstat (limited to 'lib')
-rw-r--r-- | lib/httracker/functions | 14 |
1 files 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} |