diff options
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} | 
