Prep for new proxy

This commit is contained in:
Steven Penny 2014-06-11 22:01:13 -05:00
parent 62cc43296c
commit 71a3ce0cff
1 changed files with 6 additions and 5 deletions

11
apt-cyg
View File

@ -306,11 +306,12 @@ apt-search () {
} }
proxy () { proxy () {
local sd local cn sd
cn=no_anonim_http.txt
cd /tmp cd /tmp
if [ ! -s no_anonim_http.txt ] if [ ! -s $cn ]
then then
wget -q -U ')' 50na50.net/no_anonim_http.txt wget -q -U ')' 50na50.net/$cn
fi fi
while read px country while read px country
do do
@ -330,10 +331,10 @@ proxy () {
else else
(( sd++ )) (( sd++ ))
fi fi
done < no_anonim_http.txt done < $cn
if (( sd )) if (( sd ))
then then
sed -i 1,${sd}d no_anonim_http.txt sed -i 1,${sd}d $cn
fi fi
} }