#2 remove the () in two steps
Merged 7 years ago by kevin. Opened 7 years ago by ausil.
Unknown source master  into  master

file modified
+2 -1
@@ -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

Pull-Request has been merged by kevin

7 years ago
Metadata