diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-26 17:25:14 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-02-26 19:14:04 +0300 |
commit | 9159b9577f51f60f13f34506280737be0b4edd97 (patch) | |
tree | 0fd27db56dc9bcc9af2438ca41578ba4a97f4a99 /brep/handler/submit/submit-git.bash.in | |
parent | f73c92c8e4f36415901d7016f19b9f7df2648521 (diff) |
Convert bash functions that return arrays to comply with Bash Style Guide
Diffstat (limited to 'brep/handler/submit/submit-git.bash.in')
-rw-r--r-- | brep/handler/submit/submit-git.bash.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/brep/handler/submit/submit-git.bash.in b/brep/handler/submit/submit-git.bash.in index cc679c8..4b30bc0 100644 --- a/brep/handler/submit/submit-git.bash.in +++ b/brep/handler/submit/submit-git.bash.in @@ -78,8 +78,7 @@ function check_package_duplicate () # <name> <version> <repo-dir> local s for s in "${!sections[@]}"; do local p - IFS=$'\n' eval \ - 'p=($(run pkg_find_archive "$nam-$ver.*" "$rep/${sections[$s]}"))' + run pkg_find_archive "$nam-$ver.*" "$rep/${sections[$s]}" | readarray -t p if [ "${#p[@]}" -ne 0 ]; then local n="${p[1]}" |