From 14f9e86c2c808dd99e31265deb76d84075567bf8 Mon Sep 17 00:00:00 2001 From: Video download Date: Sat, 26 Sep 2015 09:33:05 +0200 Subject: [PATCH] Update gigaclone --- gigaclone | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gigaclone b/gigaclone index f86682f..c272a72 100644 --- a/gigaclone +++ b/gigaclone @@ -1,16 +1,23 @@ #!/bin/bash set -e n=0 -y=y +y=1 + until [ "$n" = "1000" ];do { y="$y -y" +1" n="$(($n + 1))" };done dir="$PWD" tmp="$dir/tmp" copy="$dir/copy" -mkdir $tmp +mkdir $tmp $tmp/usr +cd $tmp +git clone https://github.com/adrianlopezroche/fdupes +cd fdupes +make fdupes --prefix=$tmp/usr +make install +export PATH="$PATH:$tmp/usr/bin" cd $tmp wget http://profile.gigaset.net/logs.tgz && tar -xzf logs.tgz @@ -21,7 +28,7 @@ sed -i '/.*404.*/d;/.*403.*/d;s/\sHTTP.*//g;s/.*\s/http:\/\/profile\.gigaset\.ne echo "Remove duplicates for $f" awk '!seen[$0]++' $f>$tmp/1 echo "Download urls in $f." -wget -i $tmp/1 -x -N -P $dir +wget -i $tmp/1 -x -N -P $dir >/dev/null };done cd $dir