| |
@@ -32,7 +32,8 @@
|
| |
# the same type, so we don't need to read it again for each line.
|
| |
while read -r _ filename _ hash; do
|
| |
# Remove parenthesis around tarball name
|
| |
- tarball=${filename:1:-1}
|
| |
+ filename=${filename#(}
|
| |
+ tarball=${filename%)}
|
| |
curl -H Pragma: -o "./$tarball" -R -S --fail "$baseurl/$pkgname/$tarball/$hashtype/$hash/$tarball"
|
| |
done < sources
|
| |
"${hashtype}sum" -c sources
|
| |
bash in rhel6 does not support the :1:-1 format for stripping off ()
so do it in two steps and explicitly stip off the characters
Signed-off-by: Dennis Gilmore dennis@ausil.us