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,
# 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
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}