aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/httracker/functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions
index ba68e50..40a9290 100644
--- a/lib/httracker/functions
+++ b/lib/httracker/functions
@@ -21,6 +21,10 @@ function httracker_get {
OPTS=""
fi
+ if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then
+ chown -R $USER.$GROUP $target/
+ fi
+
# Get each URL
httrack \
--mirror \
@@ -42,10 +46,6 @@ function httracker_get {
echo "Error fetching $url."
rm -rf $target
fi
-
- if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then
- chown -R $USER.$GROUP $target/
- fi
}
function httracker_get_incremental {