mirror of
https://github.com/danog/gigaclone.git
synced 2024-11-26 20:14:58 +01:00
FIx urllist
This commit is contained in:
parent
4215430820
commit
7d6e60a96a
@ -24,12 +24,13 @@ cd $tmp
|
||||
rdupes() {
|
||||
[ "$1" != "" ] && {
|
||||
echo "Remove all duplicates for $*"
|
||||
sed -i 's/\/\//\//g;s/\/$//g' $dir/urllist
|
||||
awk '!seen[$0]++' $* $dir/urllist >$dir/final
|
||||
|
||||
mv $dir/final $dir/urllist
|
||||
rm $*
|
||||
}
|
||||
sed -i 's/\/\//\//g;s/\/$//g;s/http:\//http:\/\//g;s/http:\/\/\//http:\/\//g' $dir/urllist
|
||||
|
||||
for dl in $(cat $dir/urllist); do {
|
||||
a=$(curl -w "%{url_effective}\n" -L -f -s -I -S "$dl" -o /dev/null)
|
||||
[ $? = "0" ] && echo "$a" >> $dir/final
|
||||
|
Loading…
Reference in New Issue
Block a user