Commit 384aea29 authored by Danil Mikhailov's avatar Danil Mikhailov

Create dir before download

parent 216a812e
......@@ -4,12 +4,18 @@ EGET=../eget
test_download(){
echo "Download $1"
MYFILE=$(basename $1)/$(basename $1)
MYDIR=./$(basename $1)
mkdir -p $MYDIR
cd $MYDIR
$EGET $1
file $(basename $1)
rm -rf $(basename $1)
cd -
file $MYFILE
#rm -rf $MYDIR
}
#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_test/
test_download ftp://updates.etersoft.ru/pub/people/danil/eget_test/*
#test_download http://updates.etersoft.ru/pub/people/danil/eget_test/
\ No newline at end of file
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