Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
5a4bf4ab
Commit
5a4bf4ab
authored
Nov 25, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix download_url and add test
parent
0599ff37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
web
share/eterbuild/functions/web
+4
-2
download_url.sh
tests/download_url.sh
+8
-0
No files found.
share/eterbuild/functions/web
View file @
5a4bf4ab
...
...
@@ -23,8 +23,10 @@ download_url()
# NOTE: disable cert checking
# use wget with try=1 and timeout = 30 sec
a
=
wget
--no-check-certificate
--unlink
-c
-t
1
-T
30
"
$1
"
-O
"
$NAME
"
return
a
=
wget
--no-check-certificate
--unlink
-c
-t
1
-T
30
"
$1
"
-O
"
$NAME
"
&&
return
rm
-f
"
$NAME
"
return
1
}
check_url
()
...
...
tests/download_url.sh
0 → 100755
View file @
5a4bf4ab
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod web
download_url http://www.iozone.org/src/current/iozone3_303.tar.bz2
&&
echo
"False positive"
||
echo
"OK, failed"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment