index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/check-upstream-bug-tracker | 18 |
diff --git a/bin/check-upstream-bug-tracker b/bin/check-upstream-bug-tracker index c6be40a..71754d0 100755 --- a/bin/check-upstream-bug-tracker +++ b/bin/check-upstream-bug-tracker @@ -50,17 +50,27 @@ while [ -s "${tmp_dir}/broken-packages" ]; do ) fs_ids='' OIFS="${IFS}" - IFS=$(printf '\n') + lines=$( + grep "^$(str_to_regex "${identifier}")\\s" "${tmp_dir}/broken-packages" | \ + cut -f2,3 | \ + tr '\t\n' '\n\t' + ) + IFS=$(printf '\t') # shellcheck disable=SC2013 - for line in $(grep "^$(str_to_regex "${identifier}")\\s" "${tmp_dir}/broken-packages" | cut -f2,3); do + for line in ${lines}; do IFS="${OIFS}" printf '> ' - printf '%s\n' "${line}" | \ + printf '%s' "${line}" | \ + tr '\t\n' '\n\t' | \ cut -f2 printf 'Should we wait (empty = "yes")? ' read -r w if [ -z "${w}" ]; then - fs_ids="${fs_ids},FS#$(printf '%s\n' "${line}" | cut -f1)" + fs_ids="${fs_ids},FS#$( + printf '%s\n' "${line}" | \ + tr '\t\n' '\n\t' | \ + cut -f1 + )" fi done IFS="${OIFS}" |