Commit 32bb19d3 authored by Danil Mikhailov's avatar Danil Mikhailov

Runs eget only for http with wildcard in overcase runs wget

parent 5b38644d
......@@ -23,10 +23,10 @@
WGET="wget -q"
URL=$(dirname $1)
if echo "$URL" | grep -q "^ftp://" ; then
$WGET $URL && exit 0
if echo "$1" | grep -q "\(^ftp://\|[^*]$\)" ; then
$WGET $1 && exit 0
fi
URL=$(echo $1 | grep /$ || dirname $1)
MASK=$(basename $1)
MYTMPDIR="$(mktemp -d)"
DIRALLFILES="$MYTMPDIR/files/"
......
#!/bin/sh
EGET="bash -x /srv/danil/Projects/eget/eget"
#EGET="/srv/danil/Projects/eget/eget"
test_download(){
echo "Download $1"
......@@ -16,12 +17,14 @@ file $MYFILE && echo OK || echo FAIL
sleep 1
}
#test_download ftp://updates.etersoft.ru/pub/people/danil/Victor.jpg
#test_download ftp://ftp.altlinux.ru/pub/docs/Heap/favicon.ico
#test_download ftp://updates.etersoft.ru/pub/people/danil/eget_test2/*
#test_download http://updates.etersoft.ru/pub/people/danil/eget_test2/*
#test_download http://updates.etersoft.ru/pub/people/danil/eget_test2/vm-profile.scm
test_download ftp://updates.etersoft.ru/pub/people/danil/Victor.jpg
test_download ftp://ftp.altlinux.ru/pub/docs/Heap/favicon.ico
test_download ftp://updates.etersoft.ru/pub/people/danil/eget_test2/*
test_download http://updates.etersoft.ru/pub/people/danil/eget_test2/*
test_download http://updates.etersoft.ru/pub/people/danil/eget_test2/vm-profile.scm
test_download http://updates.etersoft.ru/pub/people/danil/eget_test2/ #Download index file #MAYBE_BUG
test_download ftp://updates.etersoft.ru/pub/people/danil/eget_test2/
#wget ftp://updates.etersoft.ru/pub/people/danil/eget_test2/ # Compare with wget result
#Not work test, failed on long name
#test_download http://updates.etersoft.ru/pub/people/danil/eget_test/%d0%a1%d0%b0%d0%bd%d0%b4%d0%b5%d1%80%d1%81%20%d0%91.%2c%20%d0%9a%d1%83%d0%bc%d0%b0%d1%80%d0%b0%d0%bd%d0%b0%d1%82%d1%83%d0%bd%d0%b3%20%d0%a7.%20-%20ActionScript%203.0.%20%d0%a8%d0%b0%d0%b1%d0%bb%d0%be%d0%bd%d1%8b%20%d0%bf%d1%80%d0%be%d0%b5%d0%ba%d1%82%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d1%8f%20-%202011.pdf
......
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