Commit 502a1766 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgp: use curl -s

parent 8f5259e5
...@@ -59,10 +59,9 @@ get_git_list() ...@@ -59,10 +59,9 @@ get_git_list()
local name=$1 local name=$1
local url=$2 local url=$2
local list=$3 local list=$3
for i in $(curl $url | grep folder | sed -e "s|.*HREF=\"||g" | sed -e "s|\".*||g") ; do for i in $($CURL -s $url | grep folder | sed -e "s|.*HREF=\"||g" | sed -e "s|\".*||g") ; do
curl $url/$i | grep 'class="link"' | sed -e "s|.*href=\"||g" | sed -e "s|\".*||g" $CURL -s $url/$i | grep 'class="link"' | sed -e "s|.*href=\"||g" | sed -e "s|\".*||g"
done >$list done >$list
} }
# Using: git_list idx [force] # Using: git_list idx [force]
...@@ -86,13 +85,13 @@ get_list() ...@@ -86,13 +85,13 @@ get_list()
echo "Get list for $SYS from $URL" echo "Get list for $SYS from $URL"
#curl -l $URL/ >$LIST #curl -l $URL/ >$LIST
# suitable for ftp and http lists # suitable for ftp and http lists
$CURL -l $URL/ | tee $LIST.tmp | html_filter >$LIST $CURL -s -l $URL/ | tee $LIST.tmp | html_filter >$LIST
# check if there is letter subdirs (Fedora) # check if there is letter subdirs (Fedora)
for i in $(cat $LIST.tmp) ; do for i in $(cat $LIST.tmp) ; do
rhas "$i" rpm && break rhas "$i" rpm && break
[ -n "$(echo $i | cut -c2-)" ] && continue [ -n "$(echo $i | cut -c2-)" ] && continue
echo "Try get $URL/$i" echo "Try get $URL/$i"
$CURL -l $URL/$i/ | html_filter | sed -e "s|^|$i/|g" >>$LIST $CURL -s -l $URL/$i/ | html_filter | sed -e "s|^|$i/|g" >>$LIST
done done
rm -f $LIST.tmp rm -f $LIST.tmp
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment