mirror of
https://github.com/danog/gigaclone.git
synced 2024-11-30 04:29:09 +01:00
Update gigaclone
This commit is contained in:
parent
b85a67dfc7
commit
14f9e86c2c
15
gigaclone
15
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
|
||||
|
Loading…
Reference in New Issue
Block a user