From 326a73aaf02fc462374a38d4a20f04f80c89ffb4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Dec 11 2016 19:00:11 +0000 Subject: remove the () in two steps 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 --- diff --git a/bin/fedpkg b/bin/fedpkg index be16b27..b0cefea 100755 --- a/bin/fedpkg +++ b/bin/fedpkg @@ -32,7 +32,8 @@ if [[ -s sources ]]; then # 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